Cannot access sqlite database created in cordova app via sqllite shell from android emulator -
i create sqlite database in apache cordova cordova sqlite plugin this
var db = window.sqliteplugin.opendatabase({name: "mydb"}); db.transaction(function(tx) { tx.executesql('create table if not exists mytable (id integer primary key, content text)'); }); db.transaction(function(tx) { tx.executesql("insert mytable values(1,'text')"); } })
i let run on android emulator, provides access via shell:
$ adb shell
i go path of app
cd /data/data/nameofmyapp/databases
i can see, when enter
ls
that have file mydb.db in folder.
i enter
sqlite3 mydb
when enter
.schema
i just
create table android_metadata (locale text);
(not description of mytable expect) when enter
select * mytable;
i nothing, empty result.
why?
Comments
Post a Comment