Brought to you by libSQL Powered by libSQL bindgen
Type in a single Rust function definition below and get it transformed to a SQL statement, which you can copy-paste right into libSQL to register your brand new user-defined function. Use String or &str for text, Vec<u8> for blobs, and i32/i64/f32/f64 for numerics.
Available crates: - bytes, byteorder, itertools, itoa, lz4_flex, magic-crypt, rand (without default features, just std_rng) regex, serde, snap, syn - more coming soon!
Steps to set up libSQL shell with WebAssembly user-defined functions support: 1a. Download the shell binary with WebAssembly support from here or 1b. Build from source: ./configure --enable-wasm-runtime && make 2. Run: ./libsql