mirror of
https://github.com/perstarkse/minne.git
synced 2026-12-02 18:03:57 +01:00
feat: customizable data storage path
This commit is contained in:
1 parent
6ed49f7155
commit
850878d5c3
16 files changed
+261
-40
No files matched your search
@@ -9,6 +9,12 @@ pub struct AppConfig {
|
||||
pub surrealdb_password: String,
|
||||
pub surrealdb_namespace: String,
|
||||
pub surrealdb_database: String,
|
||||
// #[serde(default = "default_data_dir")]
|
||||
pub data_dir: String,
|
||||
}
|
||||
|
||||
fn default_data_dir() -> String {
|
||||
"./data".to_string()
|
||||
}
|
||||
|
||||
pub fn get_config() -> Result<AppConfig, ConfigError> {
|
||||
|
||||
Reference in new issue
Block a user