Fix benchmarks/go.mod so it always point the the local ksql copy

pull/13/head
Vinícius Garcia 2021-11-14 00:22:58 -03:00
parent e2705f2b8e
commit e2899617f4
2 changed files with 4 additions and 1 deletions

View File

@ -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 {

View File

@ -7,3 +7,5 @@ require (
github.com/lib/pq v1.10.4
github.com/vingarcia/ksql v1.1.0
)
replace github.com/vingarcia/ksql => ../