pub async fn commit<T: TransactionSession>(txn: T) -> Result<()>
Commits a transaction and maps errors consistently.
Returns an error when transaction setup, execution, or finalization fails.