On Thu, May 10, 2012 at 10:41 PM, swathi jakkam <[email protected]>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:

http://trac.webkit.org/browser/trunk/Source/WebCore/Modules/indexeddb

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

http://trac.webkit.org/browser/trunk/Source/WebCore/bindings/v8

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.

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to