Graphmind Rust SDK
Rust SDK for Graphmind — use as an embedded graph database or connect to a remote server.
Installation
[]
= "0.6.5"
Embedded Mode
use EmbeddedClient;
let mut client = new;
// Create data (semicolons separate multiple statements)
client.query?;
// Or use shared variables (no semicolons needed)
client.query?;
// Query
let result = client.query_readonly?;
println!;
// Schema
let schema = client.schema?;
println!;
Remote Mode
use RemoteClient;
let client = new;
let result = client.query.await?;
API
Both EmbeddedClient and RemoteClient implement the GraphmindClient trait:
| Method | Description |
|---|---|
query(graph, cypher) |
Execute read/write query |
query_readonly(graph, cypher) |
Execute read-only query |
schema(graph) |
Schema introspection |
explain(graph, cypher) |
Show execution plan |
profile(graph, cypher) |
Execute with profiling |
status() |
Server health |
ping() |
Connectivity test |
list_graphs() |
List graph namespaces |
delete_graph(graph) |
Delete a namespace |
Feature Flags
The parent graphmind crate supports feature flags for minimal builds:
# Minimal embedded engine (no server, no persistence)
= { = "0.6.5", = false }
# With persistence and vector search
= { = "0.6.5", = false, = ["persistence", "vector"] }
License
Apache-2.0 — see LICENSE