Skip to content

Files

Latest commit

abece4e · Feb 7, 2023

History

History
This branch is 596 commits behind libsql/sqld:main.

sqlc

SQLite API for sqld

This is source code to the SQLite compatible client API for sqld.

Verifying the ABI

You can verify what the ABI looks like by running cbindgen:

cbindgen -c cbindgen.toml src/lib.rs

When adding new SQLite APIs make sure that the function signatures in the header file generated by cbindgen match SQLite.

Building a small library

To build the smallest possible dynamic library, run:

cargo +nightly build \
	-Z build-std=std,panic_abort \
	-Z build-std-features=panic_immediate_abort \
	--release --target x86_64-unknown-linux-gnu