mirror of https://github.com/jackc/pgx.git
Add doc for (*Tx) BeginBatch()
parent
3ed4e7488e
commit
5789af0b64
2
batch.go
2
batch.go
|
@ -32,6 +32,8 @@ func (c *Conn) BeginBatch() *Batch {
|
||||||
return &Batch{conn: c}
|
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 {
|
func (tx *Tx) BeginBatch() *Batch {
|
||||||
return &Batch{conn: tx.conn, inTx: true}
|
return &Batch{conn: tx.conn, inTx: true}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue