Skip to main content

Crate post_cortex_storage

Crate post_cortex_storage 

Source
Expand description

Storage backends for post-cortex.

Provides the Storage trait + the lock-free RocksDB backend (RealRocksDBStorage) and an optional SurrealDB backend (SurrealDBStorage, behind the surrealdb-backend feature). Storage is the API of persistence — domain types come from post-cortex-core, vector data types from post-cortex-embeddings (with default-features = false so the ML stack is not pulled in).

use post_cortex_storage::{Storage, RealRocksDBStorage};

Re-exports§

pub use error::Error as StorageError;
pub use error::Result as StorageResult;
pub use export_import::CompressionType;
pub use export_import::ExportData;
pub use export_import::ExportMetadata;
pub use export_import::ExportOptions;
pub use export_import::ExportStats;
pub use export_import::ExportType;
pub use export_import::ExportedSession;
pub use export_import::ExportedWorkspace;
pub use export_import::ImportOptions;
pub use export_import::ImportResult;
pub use export_import::list_export_sessions;
pub use export_import::preview_export_file;
pub use export_import::read_export_file;
pub use export_import::write_export_file;
pub use rocksdb_storage::RealRocksDBStorage;
pub use rocksdb_storage::SessionCheckpoint;
pub use traits::GraphStorage;
pub use traits::Storage;
pub use traits::StorageBackend;
pub use traits::StorageBackendType;
pub use traits::StorageConfig;
pub use traits::VectorStorage;
pub use surrealdb_storage::SurrealDBStorage;
pub use traits::SurrealDBConfig;

Modules§

error
Typed error hierarchy for post-cortex-storage.
export_import
Export/Import functionality for Post-Cortex data
rocksdb_storage
RocksDB storage backend split by trait concern.
surrealdb_storage
SurrealDB storage backend for post-cortex.
traits
Storage trait abstractions for post-cortex.