1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! # minigdb
//!
//! A property-graph database engine backed by RocksDB.
//!
//! ## Module layout
//!
//! | Module | Role |
//! |---|---|
//! | [`types`] | Core data types: [`Value`], [`Node`], [`Edge`], IDs, errors |
//! | [`graph`] | [`Graph`] struct — all read/write graph operations |
//! | [`storage`] | [`StorageManager`] — persistent open/close/checkpoint |
//! | [`transaction`] | [`Operation`] enum used for WAL replay and buffered transactions |
//! | [`query`] | GQL parser, AST, and tree-walking executor |
//! | [`algorithms`] | Graph algorithms invokable via `CALL` GQL syntax |
//! | [`server`] | Async TCP + HTTP server with auth (feature `server`) |
//! | [`python`] | PyO3 Python bindings (feature `python`) |
//!
//! ## Quick start
//!
//! ```rust,no_run
//! use std::path::Path;
//! use minigdb::{query, StorageManager};
//!
//! let mut txn_id = 0u64;
//! let (_sm, mut graph) = StorageManager::open(Path::new("my_graph")).unwrap();
//! query("INSERT (:Person {name: \"Alice\"})", &mut graph, &mut txn_id).unwrap();
//! let rows = query("MATCH (n:Person) RETURN n.name", &mut graph, &mut txn_id).unwrap();
//! println!("{:?}", rows);
//! ```
// Top-level re-exports covering the most common public API surface.
pub use Graph;
pub use ;
pub use StorageManager;
pub use ;