Skip to main content

Module backend

Module backend 

Source
Expand description

Backend trait bridging sqlitegraph with higher-level graph consumers.

This module contains the core GraphBackend trait and redirects to modular backend implementations. SQLite-specific implementations are in the sqlite submodule.

Re-exports§

pub use native::NativeGraphBackend;
pub use crate::multi_hop::ChainStep;
pub use crate::backend::native::types::KvStoreError;
pub use crate::backend::native::types::KvValue;

Modules§

native
Native backend module organization and minimal public interface.

Structs§

BackupResult
Result returned by backup operations
CombinedGraphBackend
SQLite-authoritative backend mode.
EdgeSpec
Edge specification for insertion operations.
ImportMetadata
Metadata returned by snapshot import operations
NeighborQuery
Query configuration for neighbor lookups with optional filtering.
NodeSpec
Node specification for insertion operations.
SnapshotMetadata
Metadata returned by snapshot export operations
SqliteGraphBackend
SQLite-backed implementation of the GraphBackend trait.
SubscriptionFilter
Filter for subscriptions

Enums§

BackendDirection
Direction specification for graph traversal operations.
PubSubEvent
Event delivered to subscribers
PubSubEventType
Types of pub/sub events

Traits§

AsyncGraphBackend
AsyncGraphBackend defines non-blocking graph operations. Supports async/await natively using Rust 2024 edition features.
GraphBackend
Each trait method delegates to backend-specific primitives while ensuring deterministic behavior and a single integration surface for consumers.