-
Notifications
You must be signed in to change notification settings - Fork 13
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
Pre-populated databases & other enhancements missing #6
Comments
I was able to add this feature by only copying some lines from the cordova-sqlite-ext java file. The updated SQLitePlugin.java is attached here (with .txt extension, since .java is not supported). Have tested it and it worked. |
Thanks @ThijsAmersfoort. When I merge it will include support for all platforms (Android/iOS/Windows), automatic testing, and documentation. |
Hi, I'm wondering for a future project, is it possible as of today to open an existing database (with data in it) ? Thx. |
You still have to use cordova-sqlite-ext for now, hoping to fix this one in the next couple months or so. |
I forgot to mention: does it work with a downloaded file. My database will not be present in the www folder at startup. It is downloaded at runtime. |
I just opened storesafe/cordova-sqlite-storage-help#42 to get this documented. I would like to add a reminder that this plugin version is available under GPL or commercial license options. The cordova-sqlite-storage, cordova-sqlite-ext, cordova-sqlcipher-adapter, and cordova-sqlite-legacy plugin versions have permissive license terms. |
Thanks. I still have a few more questions (sorry): I read all the docs, and it seems to me that with Cordova-sqlite-evcore-extbuild-free you can open at least one database saved in a custom location on Android and iOS.
And last, a gentle advice, it is quite hard to find information in a single gigantic readme file. An automatic TOC header at the beginning of the file would be a nice addition if you don't/can't cut it into several files. Thanks a lot. |
... arbitrary (custom) location on Android only, planning to support on all platforms at some point in the future ref: brodycj/cordova-sqlite-ext#43
Yes if they do not have the same database file name.
This would be possible if the old database and new database do not share the same file name. But I would favor a different approach, such as downloading the data in JSON format. Other pre-populated database options are discussed in storesafe/cordova-sqlite-storage-help#26.
Only if the client is aware of the license terms (GPL or commercial). Please contact [email protected] if you are interested in a redistribution license.
See storesafe/cordova-sqlite-storage-help#33, thanks for the feedback. |
I received a nice note from someone who needs this with pre-populated database feature. Unfortunately I did not have much time to merge it in due to some other backlog. This feature will be included when I get a chance.
The text was updated successfully, but these errors were encountered: