-
-
Notifications
You must be signed in to change notification settings - Fork 844
Open
Labels
Description
I'm looking for a way to create user functions. In PHP's binding to SQLite3 there is a way to create functions at runtime. I'm thinking that if there were something similar in node-sqlite3 it would be awesome.
I don't want to try loading an extension because that would require me to keep tabs on versions and / or incorporating a compilation step in my modules. I'd rather just define functions in the javascript and be able to hook them into SQLite for use in queries.
http://www.sqlite.org/lang_expr.html#regexp
http://www.sqlite.org/c3ref/create_function.html
spiffytech, sologub, yifanwu, sugar700, kran6a and 7 more