Started to use db pool.

This commit is contained in:
didier amyot committed 2023-03-09 14:04:12 -05:00
1 parent eebe848e4b
commit 5df6d5afd1
6 files changed
+66 -31

No files matched your search

+7
View File
@@ -87,4 +87,11 @@ impl SQLiteConnectionFactory {
SQLiteConnectionCreator::Ephemeral(c) => c.readonly(),
}
}
pub fn path(&self) -> Option<PathBuf> {
match &self.creator {
SQLiteConnectionCreator::Path(c) => Some(c.path.clone()),
_ => None,
}
}
}