-
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
Move from std api to sqlite #18
Comments
If you create a database on Android using the standard android.database API you can open the database using the Cordova plugin. But you have to watch for possible "Multiple SQLite problem" documented in storesafe/cordova-sqlite-storage#626 (with a few edits):
|
Thanks Chris. So I need just to be carefully about concurrent calls, right? Only my app is accessing this db so I assume that I can swap flawless to the plugin as long as I'm sure no other call is made by std API. |
Yes. To be on the safe side I recommend that you avoid having the database open in only both the plugin and your code using the std API. Note that this would NOT be an issue if you use |
Thank you Chris. |
Absolutely and this is definitely an advantage of using the plugin. Another tip is that in case you make in app in Cordova then decide to rewrite it as a native app you can continue to use the same database. This should also work if you decide to switch to React Native as well. |
That's absolutely OUTSTANDING! |
Hi. Is it possible to open with this plugin a dB on Android cordova already created with native method?
The text was updated successfully, but these errors were encountered: