mirror of
https://github.com/isar/rusqlite.git
synced 2026-01-01 00:12:24 +08:00
Merge branch 'flush-cache' of https://github.com/gwenn/rusqlite into gwenn-flush-cache
This commit is contained in:
@@ -405,6 +405,7 @@ impl Connection {
|
||||
///
|
||||
/// Will return `Err` if the underlying SQLite call fails.
|
||||
pub fn close(self) -> Result<()> {
|
||||
self.flush_prepared_statement_cache();
|
||||
let mut db = self.db.borrow_mut();
|
||||
db.close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user