pub struct StorageConfig {
pub profile: String,
pub database_path: String,
pub clickhouse_url: Option<String>,
pub clickhouse_database: Option<String>,
pub postgres_url: Option<String>,
pub redis_url: Option<String>,
pub auto_migrate: bool,
}Expand description
Storage configuration section within ProxyConfig.
Fields§
§profile: StringStorage profile: "lite" (SQLite), "memory" (in-memory), or "production" (ClickHouse + PostgreSQL + Redis).
database_path: StringDatabase file path (used by the "lite" profile).
clickhouse_url: Option<String>ClickHouse HTTP URL (used by the "production" profile).
clickhouse_database: Option<String>ClickHouse database name (used by the "production" profile).
postgres_url: Option<String>PostgreSQL connection URL (used by the "production" profile).
redis_url: Option<String>Redis connection URL (used by the "production" profile).
auto_migrate: boolAutomatically run pending database migrations on startup.
Defaults to true for development (lite/memory profiles). Set to
false in production to require explicit llmtrace-proxy migrate.
Trait Implementations§
Source§impl Clone for StorageConfig
impl Clone for StorageConfig
Source§fn clone(&self) -> StorageConfig
fn clone(&self) -> StorageConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageConfig
impl Debug for StorageConfig
Source§impl Default for StorageConfig
impl Default for StorageConfig
Source§impl<'de> Deserialize<'de> for StorageConfig
impl<'de> Deserialize<'de> for StorageConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StorageConfig
impl RefUnwindSafe for StorageConfig
impl Send for StorageConfig
impl Sync for StorageConfig
impl Unpin for StorageConfig
impl UnsafeUnpin for StorageConfig
impl UnwindSafe for StorageConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more