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
@@ -57,6 +57,10 @@ impl AnyConnectionBackend for PgConnection {
|
||||
PgTransactionManager::start_rollback(self)
|
||||
}
|
||||
|
||||
fn shrink_buffers(&mut self) {
|
||||
Connection::shrink_buffers(self);
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> BoxFuture<'_, sqlx_core::Result<()>> {
|
||||
Connection::flush(self)
|
||||
}
|
||||
|
||||
@@ -199,6 +199,10 @@ impl Connection for PgConnection {
|
||||
})
|
||||
}
|
||||
|
||||
fn shrink_buffers(&mut self) {
|
||||
self.stream.shrink_buffers();
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
fn flush(&mut self) -> BoxFuture<'_, Result<(), Error>> {
|
||||
self.wait_until_ready().boxed()
|
||||
|
||||
Reference in New Issue
Block a user