Skip to main content

agentic_core/storage/
mod.rs

1//! Storage layer for persistence operations.
2
3// Database URL classification and sanitization
4pub mod backend;
5
6// Strong types for storage operations (newtype pattern)
7pub mod types;
8
9// Database connection pooling and initialization
10pub mod pool;
11
12// Database schema management and migrations
13pub mod schema;
14
15// Database schema models (sqlx FromRow types)
16pub mod models;
17
18// Response storage operations
19pub mod response;
20
21// Conversation storage operations
22pub mod conversation;
23
24// Re-export commonly used types for convenience
25pub use backend::DatabaseBackend;
26pub use conversation::ConversationStore;
27pub use models::Conversation as DbConversation;
28pub use models::Item;
29pub use models::Response as DbResponse;
30pub use pool::{
31    DbPool, DbResult, DbTransaction, create_pool, create_pool_with_configs, create_pool_with_schema,
32    create_pool_with_schema_and_configs, create_pool_with_schema_and_sqlite_config, create_pool_with_sqlite_config,
33};
34pub use response::ResponseStore;
35pub use schema::{PoolWithSchema, SchemaManager};
36pub use types::{
37    ConversationData, ConversationSnapshot, ConversationVersion, InOutItem, ItemKind, ResponseData, ResponseMetadata,
38    StorageError, StoreResult,
39};