agentstategraph-storage 1.3.2

Pluggable storage backends for AgentStateGraph
Documentation
//! agentstategraph-storage — Pluggable storage backends for AgentStateGraph.
//!
//! Provides the storage trait definitions and built-in backends:
//! - `MemoryStorage` — fast, ephemeral, for testing and speculation
//! - `SqliteStorage` — durable, single-file, the default for production use
//! - `PostgresStorage` — connection-pooled and shareable: tenants share a database,
//!   every row partitioned by tenant id, one tenant per handle
//!
//! Custom backends can be added by implementing the `Storage` trait
//! (which is a blanket impl over `ObjectStore + CommitStore + RefStore`).

#[cfg(feature = "indexeddb")]
pub mod indexeddb;
#[cfg(feature = "memory")]
pub mod memory;
#[cfg(feature = "postgres")]
pub mod postgres;
#[cfg(feature = "sqlite")]
pub mod sqlite;
pub mod traits;

// Re-export primary types
#[cfg(feature = "indexeddb")]
pub use indexeddb::IndexedDbStorage;
#[cfg(feature = "memory")]
pub use memory::MemoryStorage;
#[cfg(feature = "postgres")]
pub use postgres::PostgresStorage;
#[cfg(feature = "sqlite")]
pub use sqlite::SqliteStorage;
pub use traits::{
    CommitStore, CommitTrace, CommitWalk, DEFAULT_GC_GRACE, EpochStore, GC_FRESHEN_AFTER,
    GcReachability, GcSweep, HISTORY_NAMESPACE_UNKNOWN, HistoryMilestoneRow, HistoryRollupRow,
    ObjectStore, RefStore, SessionStore, Storage, StorageError, StoreShape, StoreTotals,
    TableBytes, TaintStore, VacuumStats,
};
/// The Postgres client crates the storage is built on, for a host that keeps
/// its own tables in the same database through [`PostgresStorage::pool`].
#[cfg(feature = "postgres")]
pub use {oxtel_sql, tokio_postgres};