0.7.22
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user