mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +00:00
feat: add Connection::shrink_buffers, PoolConnection::close
closes #2372
This commit is contained in:
committed by
Austin Bonander
parent
728280a2a3
commit
c4b835c23a
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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...
|
||||
|
||||
Reference in New Issue
Block a user