You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ziyang Hu d6df6a4d09 version number 10 months ago
..
src update doc comments for cozo_run_query 12 months ago
.gitignore example in C; always write `errored` in C API; 2 years ago
Cargo.toml version number 10 months ago
README-zh.md update readme 2 years ago
README.md update docs 2 years ago
build.rs dependencies update 10 months ago
comiple-ios.sh building for iOS 2 years ago
cozo_c.h update doc comments for cozo_run_query 12 months ago
example.c add missing immutable_query arg in example.c 1 year ago

README.md

Cozo C lib

C

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

Building Cozo from source

You need to install the Rust toolchain on your system. Then:

cargo build --release -p cozo_c -F compact -F storage-rocksdb