User defined aggregation functions will be tackled in a separate PR, since the API is not as obvious (i.e. how to we allow the JS functions to keep state / return results, do we hack something with this, do we expose do the step / final split in SQLite (and how?); ...).
What this adds are two new functions:
db.createFunction(func, options)
and db.deleteFunction(name)
Current Progress
[x] Implement wrapper code relevant to custom functions
[x] Decide if the way we pass arguments / dispatch functions is good (although this is not really public API, so we could change this in a followup PR without breaking users)
[x] Implement the JS side of things
[x] Write more extensive tests (we need to test all the argument / return types!)
[x] Write doc comments for the new methods and any related exposed types
This partly addresses #186.
User defined aggregation functions will be tackled in a separate PR, since the API is not as obvious (i.e. how to we allow the JS functions to keep state / return results, do we hack something with
this
, do we expose do thestep
/final
split in SQLite (and how?); ...).What this adds are two new functions:
db.createFunction(func, options)
db.deleteFunction(name)
Current Progress