2
0

Remove unused Batch.inTx

This commit is contained in:
Jack Christensen
2019-04-24 13:43:37 -05:00
parent 898925303d
commit 187157e773
2 changed files with 5 additions and 7 deletions
+5
View File
@@ -185,6 +185,11 @@ func (tx *Tx) CopyFrom(ctx context.Context, tableName Identifier, columnNames []
return tx.conn.CopyFrom(ctx, tableName, columnNames, rowSrc)
}
// BeginBatch returns a *Batch query for the tx's connection.
func (tx *Tx) BeginBatch() *Batch {
return &Batch{conn: tx.conn}
}
// Status returns the status of the transaction from the set of
// pgx.TxStatus* constants.
func (tx *Tx) Status() int8 {