[webkit-gtk] database accessing from JS

Martin Robinson martin.james.robinson at gmail.com
Mon May 17 08:53:59 PDT 2010


On Mon, May 17, 2010 at 8:49 AM, anil v <anil.vemulapally at gmail.com> wrote:
>    I am using latest webkit with SQLite databse support is enabled.  I am
> creating the SQLiteDatabase  using C code ( ex: "/home/user/test.db" ) this
> same test.db I want to access from the JS  and for  JS openDatabase API I
> have passed DB_NAME as "/home/user/test.db" then db opening is failing. Is
> it possible to give the absolute path name to JS  openDatabase API. Can any
> one please suggest me how to open a data base using Webkit JS API from
> specific path of file system.

This particular usecase is purposefully not supported. Not only can you not open
databases from file system locations, you cannot even open databases from other
security origins.

Martin


More information about the webkit-gtk mailing list