Insert, delete, and update in google spreadsheet: issue#5 #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, I am using your package for my client. They also want to have INSERT/DELETE/UPDATE support (issue #5). I have made some changes and add some functions to your codebase and tested them in my system using PyCharm. The modified version is working in my system correctly. The files I have modified are auth.py, url.py, db.py, sqlite.py.
Required packages:
How it works:
For 'SELECT', it executes the code as you have implemented.
For 'INSERT', it dumps Google spreadsheet data into SQLite memory and inserts new data, then append updated data from SQLite memory to the same spreadsheet.
For 'DELETE' and 'UPDATE', it dumps the spreadsheet data into SQLite memory, performs 'query' in SQLite memory, then creates a new worksheet in google spreadsheet and upload updated data into this new worksheet keeping the original worksheet unmodified. Some examples are given below.
INSERT:
I would appreciate it if you have time to review this.
Thanks,
JG