On Tue, Mar 25, 2014 at 1:20 PM, Mike Parsons <mike.r.pars...@gmail.com>wrote:

> Has anyone embedded a javascript engine (like http://duktape.org/) in
> sqlite or vice versa to allow creating user defined functions in
> javascript?


> Any pointers would be helpful
>

AFAIK i was the first person to release Open Source JS bindings for sqlite.
This particular binding is wayyyy out of date and not maintained, but here
are few links:

the "first" binding:

http://spiderape.sourceforge.net/plugins/sqlite/

(At the time i became aware of a site which claimed to be working on some,
but i never saw any releases from them.)

more recent (but abandoned because Google keeps pulling the v8 API out from
under us):

https://code.google.com/p/v8-juice/wiki/JSPDO


After having implemented 3 different sqlite3/JS bindings, i highly
recommend using an OO-style interface rather than procedural style (as the
first link does) because it makes managing the lifetimes of the statements
much easier in the face of script-side exceptions.

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to