2
0

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:
Jack Christensen
2019-08-17 17:22:14 -05:00
parent 64b4414efc
commit 99e5461522
7 changed files with 267 additions and 143 deletions
+1 -1
View File
@@ -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()) }