IndexDB in standalone v8

35 views
Skip to first unread message

swathi jakkam

unread,
May 11, 2012, 1:41:27 AM5/11/12
to v8-users
Hi,

I need some information about using IndexDB in v8 java script.
So, i am using v8 as a standalone java script engine in my
application.
could you please any body give any idea about this database.

Thanks in advance.

Regards,
swathi.

Joshua Bell

unread,
May 11, 2012, 12:14:01 PM5/11/12
to v8-u...@googlegroups.com
On Thu, May 10, 2012 at 10:41 PM, swathi jakkam <jakkams...@gmail.com> wrote:
I need some information about using IndexDB in v8 java script.
So, i am using v8 as a standalone java script engine in my
application.
could you please any body give any idea about this database.

WebKit has an implementation of the Indexed DB spec. It's in progress, with a handful of known bugs and issues etc, but fairly complete and actively being worked on to address those issues. It is only enabled in the Chromium port at the moment, but conveniently that means the v8 bindings are implemented.

You can browse the code at:


and some of the V8 binding code is at (look for *IDB* files)


It was not designed as a stand-alone library so it has many dependencies on WebKit (e.g. the WTF library) and assumptions about executing in a browser (event dispatching, DOM exception model, etc). It uses leveldb http://code.google.com/p/leveldb/ as the backing store, although this is abstracted. The implementation supports a multi-process architecture like Chromium's (where the v8 instance running user JS code is in a different process from anything with permission to write to disk), which makes the implementation more complex than might be expected, although it runs in a single-process host as well.

Reply all
Reply to author
Forward
0 new messages