This commit is contained in:
2026-05-01 00:29:32 +02:00
parent b3b0e882b2
commit c542aa9d32
17 changed files with 2347 additions and 49 deletions

View File

@@ -152,7 +152,7 @@ impl KbConfig {
wallets_directory.display()
)));
}
let sqlite_path = self.data.sqlite_path_buf();
let sqlite_path = self.database.sqlite.path_buf();
let sqlite_parent_option = sqlite_path.parent();
if let Some(sqlite_parent) = sqlite_parent_option {
if !sqlite_parent.as_os_str().is_empty() {
@@ -509,6 +509,13 @@ pub struct KbSqliteDatabaseConfig {
pub use_wal: bool,
}
impl KbSqliteDatabaseConfig {
/// Returns the resolved SQLite database path.
pub fn path_buf(&self) -> std::path::PathBuf {
kb_resolve_workspace_relative_path(&self.path)
}
}
/// Database configuration.
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]