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¶
- grafeo-common - Foundation types
- grafeo-core - Core data structures
- grafeo-adapters - Parsers and storage
- grafeo-engine - Database facade
API Stability¶
The public API (grafeo and grafeo-engine) follows semver.
Internal crates may have breaking changes in minor versions.