Skip to content

libsql/libsql_bindgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

This repository contains a helper library for coding WebAssembly-powered user-defined functions for libSQL.

Marking a native Rust function with #[libsql_bindgen] macro and compiling it to wasm32-unknown-unknown target is enough to produce a user-defined function definition callable directly from libSQL.

A generic example: https://github.com/psarna/libsql_bindgen/blob/master/examples/encrypt_decrypt/src/lib.rs

Try it yourself:

cd examples/encrypt_decrypt
./get_sql.sh encrypt
./get_sql.sh decrypt

There are also advanced examples that require WasmEdge to run:

This repository is the foundation of libSQL generate and http://bindgen.libsql.org/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages