-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation of single-statement API #17
Comments
Hi Chris... I get the part that this is the way to handle multiple-page apps. And I did see the doc'n which u pasted in above. But, unfortunately, that didn't answer the 2nd part of my question -
You see, "single-statement" versus "standard" could use a few more words of explanation. Cuz what I read leaves me wondering:
Your examples are great but it seems maybe they don't cover all possible syntax differences. For example...
Please note that the WHERE statement ... I didn't see that example in your examples. I appreciate so much you putting examples there - but in my case it didn't cover everything I needed to know. I don't think it's necessary to have a guide just for multiple page apps at this time. Rather, perhaps we can work together to clarify some text. I am very happy to assist with this however I can. Again - thanks so much for all your excellent and generous help! |
Chris, jw if u saw my post above? |
My apologies, I think I misread something and had thought there was another part coming. The "single-statement" method is unique to this plugin and its derivatives. In terms of history: I added it to deal with PRAGMA statements that should not be contained within a BEGIN...COMMIT transaction. (It was part of the original iOS version by Davide Bertola though with the SQL and parameter values all together in a single array.) I will try to make a more general description of the usage in case it helps: db.executeSql(sql, optionalArgumentValues, optionalSuccessCallback, optionalErrorCallback); where:
IMPORTANT: Unlike transaction.executeSql in the standard transaction API the single statement executeSql callbacks should NOT expect a "tx" (transaction object) argument. From your description I cannot see what you may be going wrong. You may want to post a small test program, ideally based on https://github.com/brodybits/cordova-sqlite-test-app, to demonstrate the issue. I will integrate this in README.md for cordova-sqlite-storage when I get a chance. I would be happy if you raise a PR on cordova-sqlite-storage (or one of the derivatives) otherwise I will do this myself when I get a chance. |
From storesafe/cordova-sqlite-storage#666 (comment):
My answer:
I thought I documented this by example in https://github.com/litehelpers/Cordova-sqlite-storage#single-statement-transactions:
This is evidently not clear enough. I think I will really need to start a real multi-page guide that people can follow more easily.
I cannot promise when I will get a chance to deal with this properly. Priority goes to paid users. For more information please contact [email protected] or [email protected].
The text was updated successfully, but these errors were encountered: