Add pgx.Tx interface and pseudo nested transaction support
This complicates the idea of a persistent transaction status and error so that concept was removed.
This commit is contained in:
+1
-1
@@ -484,7 +484,7 @@ func namedValueToInterface(argsV []driver.NamedValue) []interface{} {
|
||||
return args
|
||||
}
|
||||
|
||||
type wrapTx struct{ tx *pgx.Tx }
|
||||
type wrapTx struct{ tx pgx.Tx }
|
||||
|
||||
func (wtx wrapTx) Commit() error { return wtx.tx.Commit(context.Background()) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user