pub async fn commit<T: TransactionSession>(txn: T) -> Result<()>
Commits a transaction and maps errors consistently.