Remove unused Batch.inTx
This commit is contained in:
@@ -23,7 +23,6 @@ type Batch struct {
|
||||
resultsRead int
|
||||
ctx context.Context
|
||||
err error
|
||||
inTx bool
|
||||
|
||||
mrr *pgconn.MultiResultReader
|
||||
}
|
||||
@@ -33,12 +32,6 @@ func (c *Conn) BeginBatch() *Batch {
|
||||
return &Batch{conn: c}
|
||||
}
|
||||
|
||||
// BeginBatch returns a *Batch query for tx. Since this *Batch is already part
|
||||
// of a transaction it will not automatically be wrapped in a transaction.
|
||||
func (tx *Tx) BeginBatch() *Batch {
|
||||
return &Batch{conn: tx.conn, inTx: true}
|
||||
}
|
||||
|
||||
// Conn returns the underlying connection that b will or was performed on.
|
||||
func (b *Batch) Conn() *Conn {
|
||||
return b.conn
|
||||
|
||||
Reference in New Issue
Block a user