Skip to content

Rust API Reference

Grafeo is written in Rust and provides a native Rust API.

Crates

Crate docs.rs
grafeo docs.rs/grafeo
grafeo-engine docs.rs/grafeo-engine

Quick Start

use grafeo::Database;

fn main() -> Result<(), grafeo::Error> {
    let db = Database::open_in_memory()?;
    let session = db.session()?;

    session.execute("INSERT (:Person {name: 'Alice'})")?;

    Ok(())
}

Crate Documentation

API Stability

The public API (grafeo and grafeo-engine) follows semver.

Internal crates may have breaking changes in minor versions.