I have the following problem: I am using SQLite Plugin: link in my hybrid App with cordova version: 6.1.1
I have a pre-populated bd located in the www folder of my project and the connection to my bd is like this:
var _db = window.sqlitePlugin.openDatabase({
name: 'db_skulapp.db',
location: 1,
createFromLocation: 1
},
_function,
function(_error){
console.log('Error abriendo bd: '+JSON.stringify(_error));
});
The connection opened and does not report any errors, but when I make a query about the bd, I get the following error:
no such table: profile (code 1):, while compiling: INSERT INTO profile VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
I decided to print the value of tx (the object that is created in the context of _db.transaction ()) and this is its value:
{"openargs":{"name":"db_skulapp.db","location":1,"createFromLocation":1,"dblocation":"libs","createFromResource":"1"},"dbname":"db_skulapp.db"}
Question:
Thanks to whoever can help me!