pub async fn begin<C: TransactionTrait>(db: &C) -> Result<C::Transaction>Expand description
Begins and returns a transaction so the caller can commit or roll it back.
This centralizes begin error mapping.
ยงErrors
Returns an error when transaction setup, execution, or finalization fails.