brodycj / cordova-sqlite-ext

A Cordova/PhoneGap plugin to open and use sqlite databases on Android/iOS/macOS/Windows with REGEXP (Android/macOS/iOS) and pre-populated databases (Android/iOS/macOS/Windows)
Other
72 stars 55 forks source link

Pre-populated database samples & links #40

Open brodycj opened 8 years ago

brodycj commented 8 years ago

There is already an Ionic starter template with pre-populated database support but I think a simpler sample could help some users. Ideally with and without Ionic.

An 2014 article by Raboy still seems to be relevant though it could use some very minor updates. I think it should go back in README.md. It has apparently moved to: https://www.thepolyglotdeveloper.com/2014/11/use-sqlite-instead-local-storage-ionic-framework

I wonder if there are some more recent tutorials and other articles?

brodycj commented 8 years ago

I found a couple more links:

jigarsangoi commented 8 years ago

Hello @brodybits , I have an issue with creating demo app with Pre-populated database. I raised question http://stackoverflow.com/questions/39252995/how-to-use-pre-populated-sqlite-database-with-cordova-for-android on stackoverflow. Above tutorial creates table structures on run time which is not useful in this case. Please can you look and suggest what must be done to resolve problem.

brodycj commented 8 years ago

@jigarsangoi the plugin will not copy the database if it already exists. It is recommended to uninstall your app and try it again.