2
0

Batch uses statement cache.

This streamlines Queue's interface as well.
This commit is contained in:
Jack Christensen
2019-08-24 23:34:54 -05:00
parent 6508934508
commit 64b07f0d66
5 changed files with 201 additions and 156 deletions
+2 -2
View File
@@ -68,8 +68,8 @@ type sendBatcher interface {
func testSendBatch(t *testing.T, db sendBatcher) {
batch := &pgx.Batch{}
batch.Queue("select 1", nil, nil, nil)
batch.Queue("select 2", nil, nil, nil)
batch.Queue("select 1")
batch.Queue("select 2")
br := db.SendBatch(context.Background(), batch)