use serde::{Deserialize, Serialize};
/// 嵌入式数据库配置
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Conf {
pub data_path: String,
pub cache_size: Option<usize>,
pub compression: Option<String>,
}
impl Default for Conf {
fn default() -> Self {
Self {
data_path: "./data".to_string(),
cache_size: None,
compression: Some("lz4".to_string()),
}
}
}