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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -