Crate sqlitegraph

Crate sqlitegraph 

Source
Expand description

SQLite-backed graph database for embedded use.

Provides a lightweight, deterministic graph database with:

  • Entity and edge storage with metadata
  • Pattern matching with cache-enabled fast-path
  • MVCC-lite snapshots for read isolation
  • Deterministic indexing and querying

Re-exports§

pub use backend::SqliteGraphBackend;
pub use backend_client::BackendClient;
pub use cache::CacheStats;
pub use cli_reasoning::handle_command;
pub use dsl::DslResult;
pub use dsl::parse_dsl;
pub use errors::SqliteGraphError;
pub use graph::GraphEdge;
pub use graph::GraphEntity;
pub use graph::SqliteGraph;
pub use graph_opt::GraphEdgeCreate;
pub use graph_opt::GraphEntityCreate;
pub use graph_opt::bulk_insert_edges;
pub use graph_opt::bulk_insert_entities;
pub use graph_opt::cache_stats;
pub use index::add_label;
pub use index::add_property;
pub use mvcc::GraphSnapshot;
pub use mvcc::SnapshotState;
pub use pattern_engine::PatternTriple;
pub use pattern_engine::TripleMatch;
pub use pattern_engine::match_triples;
pub use pattern_engine_cache::match_triples_fast;
pub use query::GraphQuery;
pub use reasoning::ReasoningConfig;
pub use recovery::dump_graph_to_path;
pub use recovery::load_graph_from_path;
pub use recovery::load_graph_from_reader;
pub use reindex::ReindexConfig;
pub use reindex::ReindexProgress;
pub use reindex::ReindexResult;
pub use reindex::ReindexStage;
pub use safety::run_deep_safety_checks;
pub use safety::run_safety_checks;

Modules§

algo
backend
Backend trait bridging sqlitegraph with higher-level graph consumers. Each trait method delegates to the existing sqlitegraph primitives (e.g., SqliteGraph::insert_entity, crate::bfs::bfs_neighbors), ensuring deterministic behavior while providing a single integration surface. The sqlite-backend Cargo feature (enabled by default) keeps this adapter compiled in, simplifying future backend selection.
backend_client
backend_selector
bench_gates
bench_meta
bench_regression
bench_utils
bfs
cache
cli_reasoning
client
dsl
dual_orchestrator
dual_read
dual_runner
dual_runtime
dual_write
errors
fault_injection
graph
SQLite-backed graph database implementation.
graph_opt
index
migration
multi_hop
mvcc
MVCC-lite snapshot system for SQLiteGraph
pattern
pattern_engine
Lightweight triple pattern matcher for SQLiteGraph.
pattern_engine_cache
Cache-enabled fast-path for pattern matching.
pipeline
query
reasoning
recovery
reindex
Graph reindexing functionality for syncore and sync graph operations.
safety
schema
subgraph

Structs§

Label
NodeId

Functions§

explain_pipeline