Closed lulu2727 closed 8 years ago
This project does not support the pre-populated database (createFromLocation
) feature, it is now supported by cordova-sqlite-ext. I will update README with a clear note when I get a chance.
Also @jdnichollsc contributed a sample Ionic project with a pre-populated database at: https://github.com/jdnichollsc/Ionic-Starter-Template
@brodybits You are doing such an awesome job, thanks a million! So I want to ask, did you say
This project does not support the pre-populated database (createFromLocation) feature
Because for the past few weeks I have been using it (createFromLocation
) and it has been working fine. I have been using two dbs in my project together with the cordova-plugin-dbcopy, however yesterday I created another db and no matter what I do, I get "message": "No such table"
code 1 error. Problem is:
What could be the possible issue here?
@coommark I think you asked the same question in litehelpers/cordova-sqlite-ext#14. Closing this one.
I have created a basic database using SqlliteBrowser. I have placed my database in my www directory of an ionic app. The ionic app doesn't do anything, i'm just trying to reference the created database. This code below is my app :
`angular.module('app', ['ionic', 'ngCordova'])
I'm testing it on an nexus 6 using 'cordova run android'. I have access to google chrome console thanks to remote debugging (chrome://inspect). I have added Cordova-sqlite-storage plugin to cordova. However, window.sqlitePlugin.openDatabase create another database and doesn't use the existing one. Where do i need to put the existing database for the plugin to find it.