Creating SQLite Database in Cordova and accessing it on android emulator shell -


i create database in application via

window.sqliteplugin.opendatabase({name: "mydatabase"}); 

when want access sqlite database via shell of android emulator, call

$ sqlite3 $ .database 

and is:

seq  name             file                                                      ---  ---------------  ---------------------------------------------------------- 0    main 

means, no database found. do wrong?


when

sqlite3 mydatabase select * mytable 

i get

error: unable open database "mydatabase": unable open database file 

when do

 .open mydatabase 

i

error: unknown command or invalid arguments:  "open". enter ".help" 

$ sqlite sqlite version 3.8.6 2014-08-15 11:46:33 enter ".help" usage hints. connected transient in-memory database. use ".open filename" reopen on persistent database. sqlite> 

you did not tell sqlite3 tool which database file use.


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 -