learn more at libsql-c
- V ORM is supported, but it still needs tests
- libsql-c SDK is currently in technical preview, and mostly used for internal use when building other libSQL SDKs
- libsql-c does not expose the sqlite compatible C api
cargo and rust need to be installed Rust and Cargo
- this will install libsql-c if not found ( copies liblibsql.a to ./thirdparty)
- this will also prompt to install rust if not found in $PATH
make update
- dynamic library (example)
make update LIBRARY_LIB=liblibsql.dylib
-
Clone the repository:
git clone https://github.com/tursodatabase/libsql-c.git cd libsql-c
-
Build the library:
- default:
cargo build --release
- with encryption:
cargo build --release --features encryption
- currently ive only gotten encryption on darwin, feel free to test this
-
The compiled library will be in
libsql-c/target/release/
:liblibsql.so
(Linux)liblibsql.dylib
(macOS)liblibsql.dll
(Windows)liblibsql.a
(static)
-
Copy
libsql.h
and the compiled library to ./thirdparty -
this wrapper supports static library or dynamic library