You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support UDF / Custom functions in drivers and SDKs #1222
I'm using the Rust SDK, and I can see I have access to the sqlite3_create_function function in the ffi module, but I don't know how to get the pointers I need in order to use it in the libsql crate.
Does anybody have any pointers on how to go about that?
I opened a PR for this #2182. Might not be totally ready yet, it only adds SDK bindings for Rust, and still needs support for window functions and aggregation functions, but it looks like it basically works.
This should let me keep using libsql instead of having to migrate to rusqlite so I'm going to try it out in my app and see how it goes.
Activity
zicklag commentedon Oct 27, 2025
I'm using the Rust SDK, and I can see I have access to the
sqlite3_create_functionfunction in the ffi module, but I don't know how to get the pointers I need in order to use it in thelibsqlcrate.Does anybody have any pointers on how to go about that?
zicklag commentedon Oct 27, 2025
I think I'm starting to see how to implement UDFs in
libsql. I'm going to try copying how the authorizer is done, mostly.zicklag commentedon Oct 28, 2025
I opened a PR for this #2182. Might not be totally ready yet, it only adds SDK bindings for Rust, and still needs support for window functions and aggregation functions, but it looks like it basically works.
This should let me keep using libsql instead of having to migrate to rusqlite so I'm going to try it out in my app and see how it goes.
zicklag commentedon Feb 11, 2026
UDFs have been working great so far in my app. ✔️