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

update populated database #79

Open gatelli opened 6 years ago

gatelli commented 6 years ago

Hi, I made an app downloading a database from an URL with cordova file transfer, then I use cordova-sqlite-ext to read the DB from iosDatabaseLocation: 'Documents' and display some informations.

It's working well.

But I need to update some DB from my server, so the user can "update" the DB by downloading a new one (with the same name). But unfortunatly I can't read the new DB (I have an error code 0 while opening it).

Is there an issue with the same name DB ? They are not replaced by the new one ? Do I have to modify the DB name for each update ?

Thanks for your answer.

dannoe commented 6 years ago

I think this is the same situation: https://github.com/litehelpers/cordova-sqlite-ext/issues/68#issuecomment-342034593