Vadi
Vadi

Reputation: 11

How to connect to an existing SQLite database in Android project using Javascript?

I have copied the Android project from below mentioned location:

http://groups.google.com/group/phonegap/browse_thread/thread/07cf9f48e3cd0663

I have created a SQLite database on my system, now I want to use the same database in my project. But, I want to connect to the database using Javascript (not using Java). Can any one of you give me some tips or any reference to achieve this task.

Upvotes: 1

Views: 836

Answers (1)

supakeen
supakeen

Reputation: 2914

If you are referring to javascript running in your browser you won't be able to do that.

A sqlite database is a file on your file system. Javascript which runs in browsers has no, or very limited, access to your file system.

However, modern browsers (and probably most modern mobile browsers as well) do allow you access to the IndexedDB storage API which is a SQL database running on the client and available to your website.

Upvotes: 1

Related Questions