-
Notifications
You must be signed in to change notification settings - Fork 714
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
Implement prepopulation #10
Comments
I am very thankful and please update AUTHORS.md as well when it is Just a small suggestion you may want to consider: I had seen a case with an Thanks, On Thursday, September 26, 2013, J. Roberto Vidal wrote:
Sent from my mobile |
Are there any plans to enable us to use prepopulated SQLITE DBs, without resorting to writing native code? |
What I do in iOS is create my SQLite database in resource folder and then copy it to the app documents' folder at runtime. Yannick
|
Hello Yannick, |
I'm using object-c code in the AppDelegate.m file to copy my predefined DB https://gist.github.com/YannickGagnon/7055026 Hope this is helpful! Yannick 2013/10/19 zeligmanos notifications@github.com
Life would be so much easier if we could just look at the source code. -- |
It seems that - at least when using with sqlcipher - when copying the DB to the bundle documents folder, it is not being recognised, because it is not searching for .db files (as per readme?). Simple fix: SQLitePlugin.m:
Then, using Yannick's trick it all goes smoothly - thanks! |
@YannickGagnon sorry for the late reply. Now, I believe it's time for an update to the SQLite Plugin in terms of prepopulation. @jarlehansen's solution for android and @YannickGagnon for iOS, both work great, so including these modifications in the plugin, prepopulation will be fully supported without extra code alterations on the user's side. |
Were pre-populated files ever implemented? I don't see it in the current Note to self, example code can be found at: On Wednesday, September 25, 2013 11:26:05 PM UTC-7, Chris Brody wrote:
|
No, despite the discussions the changes to support the pre-populated database were never included in this version. README.md contains a pointer to a version that does support the pre-populated database for Android & iOS at: https://github.com/RikshaDriver/Cordova-PrePopulated-SQLitePlugin |
I tried out the sqlite plugin at But I see the current plugin of chris has gone through a lot of changes Are there are still plans to support pre-populated database as a standard Thanks, |
I found another implementation that supports pre-populated databases at: That one seems to be more up-to-date. I will consider merging that one in On Wed, Aug 13, 2014 at 11:31 AM, shankar.nitc@gmail.com wrote:
|
Hi Chris, Thanks for the quick reply. Looking forward to have this merged to your Sankar |
bump |
Moving discussion to #172. |
I have now pushed a new release to master with optional support for pre-populated database. Please see README.md for details. |
There is plenty of "third-party" code for copying a pre-populated database instead of creating a new one.
I have started a fork to try to get this feature working consistently in both Android and iOS. The Android part is already done by @jarlehansen.
Anyway, feedback welcome.
The text was updated successfully, but these errors were encountered: