retia 0.1.2

A general-purpose, transactional, relational database that uses Datalog and focuses on graph data and algorithms. Rust-only fork of CozoDB.
Documentation

retia

Crates.io docs.rs License

Query engine and core library for retia, a transactional relational graph database with native Datalog (CozoScript) queries, graph algorithms, vector / FTS / LSH search, and time travel.

retia is the Rust-only fork of CozoDB maintained inside the fluminis-scientiae-oraculum project. Non-Rust bindings (Python, Node.js, Java, Swift, C FFI) are intentionally out of scope — for those, use upstream CozoDB.

Usage

[dependencies]
retia = "0.1"
use retia::{DbInstance, ScriptMutability};

let db = DbInstance::new("mem", "", Default::default()).unwrap();
let result = db
    .run_script("?[a] := a in [1, 2, 3]", Default::default(), ScriptMutability::Immutable)
    .unwrap();
println!("{:?}", result);

Storage backends

Enabled via Cargo features:

Feature Engine Notes
storage-sqlite SQLite Default in compact. Also the backup/restore format.
storage-rocksdb RocksDB via retia-rocks (C++/cxx) High concurrency; long compile.
storage-new-rocksdb RocksDB via crates.io rocksdb Lighter build.
(mem) In-memory only Always available; no feature flag needed.

For a standalone server / REPL, see retia-bin. For the query-language reference, the upstream CozoScript docs apply unchanged.

Project links

License

MPL-2.0, same as upstream CozoDB. Per-file copyright headers attributed to The Cozo Project Authors are preserved in inherited sources.