You can access the already created sqlite db file through javascript. Take a look at the Database File Location field of this link http://code.google.com/apis/gears/api_database.html
I know this is for Google Gears, but Gears uses SQLite, and the location is still applied without Gears and only using the sqlite db file.
For example, I used the "SQLite Manager" add-in for Firefox to create a sqlite db file on my local machine. Then I copied this file to C: \ Users \\ AppData \ Local \ Google \ Chrome \ User Data \ Default \ databases \ file__0
I was able to access the file using JavaScript in Google Chrome:
var db = null; try { if (window.openDatabase) { db = openDatabase("mydbfile.sqlite", "1.0", "HTML5 Database API example", 200000); ....
You have to be careful with the file name in Chrome, as it automatically calls each sqlite db id number. For example, I had to rename the sqlite db file name to 14 in order to read it in JavaScript in a browser. As soon as I did this, he worked as a champion, and I was able to access all the tables, data, etc.
source share