vrischmann / zig-sqlite

zig-sqlite is a small wrapper around sqlite's C API, making it easier to use with Zig.
MIT License
367 stars 49 forks source link

add createScalarFunction to create a user-defined scalar function #80

Closed vrischmann closed 2 years ago

vrischmann commented 2 years ago

This is the first part of adding support for user-defined functions. This PR only implements scalar functions, aggregate functions will come later.

Partly addresses #27

vrischmann commented 2 years ago

It only partly fixes #27 because I didn't implement saving/loading struct as blobs, I'm not sure if that's something that will always work ?

@daurnimator I know it's been a long time but if you're still interested in this feature I'd be interested in your feedback.