Started to use db pool.
This commit is contained in:
1 parent
eebe848e4b
commit
5df6d5afd1
6 files changed
+66
-31
No files matched your search
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user