Closed ruslandoga closed 2 years ago
Seems like it's already possible to define custom functions via extensions.
https://hexdocs.pm/exqlite/readme.html#using-sqlite3-native-extensions
@ruslandoga you may want to check out @mindreframer's stuff.
Another issue
👋
I'd like to try defining a custom aggregate / window function in a NIF and I wonder if there is some easy way to do that. Like
The NIF would be in my app that depends on
:ecto_sqlite3
, so I don't have direct access to:exqlite
connections. Maybe some kind of callback likeon_open
would be provided to:ecto_sqlite3
adapter to be called with db reference each time connection opens.