pub async fn transaction(&mut self) -> Result<Transaction<'_>, Error> {
        Ok(Transaction {
            txn: PgClient::transaction(&mut self.client).await?,
            statement_cache: &self.statement_cache,
        })
    }
/// Begins a new database transaction which supports the statement cache.
///
/// See [`tokio_postgres::Client::transaction`](#method.transaction-1)
Begins a new database transaction which supports the statement cache.
Begins a new database transaction which supports the statement cache .
pub async fn transaction(&mut self) -> Result<Transaction<'_>, Error> {
        Ok(Transaction {
            txn: PgClient::transaction(&mut self.client).await?,
            statement_cache: &self.statement_cache,
        })
    }
pub async fn transaction ( & mut self ) -> Result < Transaction < ' _ > , Error > { Ok ( Transaction { txn : PgClient :: transaction ( & mut self . client ) . await ? , statement_cache : & self . statement_cache , } ) }
Begins a new database transaction which supports the statement cache.
Begins a new database transaction which supports the statement cache .
&mut self
&mut self