2
0

Add SendBatch to pool

This commit is contained in:
Jack Christensen
2019-04-25 15:07:35 -05:00
parent 00d123a944
commit 7b1272d254
13 changed files with 170 additions and 29 deletions
+2 -2
View File
@@ -186,9 +186,9 @@ func (tx *Tx) CopyFrom(ctx context.Context, tableName Identifier, columnNames []
}
// SendBatch delegates to the underlying *Conn
func (tx *Tx) SendBatch(ctx context.Context, b *Batch) *BatchResults {
func (tx *Tx) SendBatch(ctx context.Context, b *Batch) BatchResults {
if tx.status != TxStatusInProgress {
return &BatchResults{err: ErrTxClosed}
return &batchResults{err: ErrTxClosed}
}
return tx.conn.SendBatch(ctx, b)