begin_transaction

Function begin_transaction 

Source
pub async fn begin_transaction<C>(
    conn: &mut C,
) -> Result<Tx<'_>, SqlMiddlewareDbError>
where C: DerefMut<Target = Client>,
Expand description

Begin a new transaction on the provided Postgres connection.

ยงErrors

Returns an error if creating the transaction fails.