Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions dbr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
_ "github.com/denisenkom/go-mssqldb"
_ "github.com/go-sql-driver/mysql"
"github.com/gocraft/dbr/v2/dialect"
_ "github.com/lib/pq"
_ "github.com/jackc/pgx/v5/stdlib"
_ "github.com/mattn/go-sqlite3"
"github.com/stretchr/testify/require"
)
Expand All @@ -36,8 +36,8 @@ func createSession(driver, dsn string) *Session {

var (
mysqlSession = createSession("mysql", mysqlDSN)
postgresSession = createSession("postgres", postgresDSN)
postgresBinarySession = createSession("postgres", postgresDSN+"&binary_parameters=yes")
postgresSession = createSession("pgx", postgresDSN)
postgresBinarySession = createSession("pgx", postgresDSN+"&binary_parameters=yes")
sqlite3Session = createSession("sqlite3", sqlite3DSN)
mssqlSession = createSession("mssql", mssqlDSN)

Expand Down Expand Up @@ -187,7 +187,7 @@ func TestBasicCRUD(t *testing.T) {

func TestTimeout(t *testing.T) {
mysqlSession := createSession("mysql", mysqlDSN)
postgresSession := createSession("postgres", postgresDSN)
postgresSession := createSession("pgx", postgresDSN)
sqlite3Session := createSession("sqlite3", sqlite3DSN)

// all test sessions should be here
Expand Down
21 changes: 16 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
module github.com/gocraft/dbr/v2

go 1.21
go 1.23

toolchain go1.23.7

require (
github.com/DATA-DOG/go-sqlmock v1.5.0
github.com/denisenkom/go-mssqldb v0.11.0
github.com/go-sql-driver/mysql v1.6.0
github.com/jackc/pgtype v1.14.4
github.com/jackc/pgx/v5 v5.7.4
github.com/jmoiron/sqlx v1.3.4
github.com/lib/pq v1.10.4
github.com/mattn/go-sqlite3 v1.14.8
github.com/opentracing/opentracing-go v1.2.0
github.com/stretchr/testify v1.7.0
github.com/stretchr/testify v1.8.1
)

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/puddle/v2 v2.2.2 // indirect
github.com/lib/pq v1.10.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/crypto v0.24.0 // indirect
github.com/rogpeppe/go-internal v1.14.1 // indirect
golang.org/x/crypto v0.31.0 // indirect
golang.org/x/sync v0.10.0 // indirect
golang.org/x/text v0.21.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading