From e2899617f4bc629c26a0ab133da4de8cf7cc5420 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Sun, 14 Nov 2021 00:22:58 -0300 Subject: [PATCH] Fix benchmarks/go.mod so it always point the the local ksql copy --- benchmarks/benchmarks_test.go | 3 ++- benchmarks/go.mod | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/benchmarks/benchmarks_test.go b/benchmarks/benchmarks_test.go index 47a5c3c..2be1771 100644 --- a/benchmarks/benchmarks_test.go +++ b/benchmarks/benchmarks_test.go @@ -10,6 +10,7 @@ import ( "github.com/jmoiron/sqlx" _ "github.com/lib/pq" "github.com/vingarcia/ksql" + "github.com/vingarcia/ksql/kpgx" ) var UsersTable = ksql.NewTable("users") @@ -52,7 +53,7 @@ func BenchmarkInsert(b *testing.B) { }) }) - pgxDB, err := ksql.NewWithPGX(ctx, connStr, ksql.Config{ + pgxDB, err := kpgx.New(ctx, connStr, ksql.Config{ MaxOpenConns: 1, }) if err != nil { diff --git a/benchmarks/go.mod b/benchmarks/go.mod index 4e492cf..7b5a222 100644 --- a/benchmarks/go.mod +++ b/benchmarks/go.mod @@ -7,3 +7,5 @@ require ( github.com/lib/pq v1.10.4 github.com/vingarcia/ksql v1.1.0 ) + +replace github.com/vingarcia/ksql => ../