This directory contains the source of the Cozo C API.
This document describes how to set up the C library. To learn how to use CozoDB (CozoScript), read the docs.
You can download pre-built libraries from the release page,
look for those starting with libcozo_c
.
The API is contained in this single header file.
An example for using the API is here.
To build and run the example:
gcc -L../target/release/ -lcozo_c example.c -o example && ./example
You need to install the Rust toolchain on your system. Then:
cargo build --release -p cozo_c -F compact -F storage-rocksdb