cognee_storage/lib.rs
1//! Abstract file-storage layer for Cognee.
2//!
3//! Provides a trait-based interface for blob/file persistence so storage
4//! backends can be swapped without touching the ingestion pipeline.
5//!
6//! - [`StorageTrait`] (+ [`StorageExt`], [`StorageWriter`]) — async storage operations
7//! - [`LocalStorage`] — local-filesystem implementation using `file://` URIs
8//! - `MockStorage` (feature `testing`) — in-memory implementation for tests
9
10mod local_storage;
11mod storage_trait;
12
13#[cfg(feature = "testing")]
14mod mock_storage;
15
16pub use local_storage::LocalStorage;
17pub use storage_trait::{StorageError, StorageExt, StorageTrait, StorageWriter};
18
19#[cfg(feature = "testing")]
20pub use mock_storage::MockStorage;