feat: add Connection::shrink_buffers, PoolConnection::close

closes #2372
This commit is contained in:
Austin Bonander
2023-03-03 16:09:13 -08:00
committed by Austin Bonander
parent 728280a2a3
commit c4b835c23a
13 changed files with 187 additions and 21 deletions

View File

@@ -59,6 +59,10 @@ impl AnyConnectionBackend for SqliteConnection {
SqliteTransactionManager::start_rollback(self)
}
fn shrink_buffers(&mut self) {
// NO-OP.
}
fn flush(&mut self) -> BoxFuture<'_, sqlx_core::Result<()>> {
Connection::flush(self)
}

View File

@@ -157,6 +157,11 @@ impl Connection for SqliteConnection {
})
}
#[inline]
fn shrink_buffers(&mut self) {
// No-op.
}
#[doc(hidden)]
fn flush(&mut self) -> BoxFuture<'_, Result<(), Error>> {
// For SQLite, FLUSH does effectively nothing...