On Feb 28, 12:10 am, Stephan Beal <[email protected]> wrote:
> This evening i've made good progress on sqlite3 bindings for v8.

Hi, all!

Okay, the sqlite3 wrapper appears to work (except for
sqlite3_create_function(), where the created function is apparently
getting GC'd before client code can call it), with 48 wrapped
functions. i've dropped off the code at:

http://wanderinghorse.net/computing/javascript/v8/

To use it in your own code, just copy v8-*.{cc,h} into your tree,
include v8-sqlite3.h in your app, and call v8::p3::sq3::SetupAddon
(yourGlobalJSObject) to install the addon into your global object. The
list of bound functions is in v8-sqlite3.h, and includes docs on where
the JS/Native APIs differ (normally due to argument passing
conventions).

As this is my first v8 code, it may have some blatant misuses of v8.
It seems to work, but YMMV.

Happy hacking!

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

Reply via email to