Skip to content

Commit

Permalink
Merge pull request #39 from kanmu/update_pgx_v4_v5
Browse files Browse the repository at this point in the history
Update pgx v4 to v5
  • Loading branch information
winebarrel authored Oct 3, 2024
2 parents 6951999 + 7820154 commit b9e1a96
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 195 deletions.
4 changes: 2 additions & 2 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"net/url"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/stdlib"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/stdlib"
)

func GetConnector(host string, port int, username string, password string, database string) (driver.Connector, error) {
Expand Down
4 changes: 2 additions & 2 deletions driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"database/sql/driver"

"github.com/jackc/pgx/v4/stdlib"
"github.com/kanmu/qg/v4"
"github.com/jackc/pgx/v5/stdlib"
"github.com/kanmu/qg/v5"
)

var _ driver.Connector = &testConnector{}
Expand Down
2 changes: 1 addition & 1 deletion enqueue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/kanmu/qg/v4"
"github.com/kanmu/qg/v5"
)

func TestEnqueueOnlyType(t *testing.T) {
Expand Down
21 changes: 7 additions & 14 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
module github.com/kanmu/qg/v4
module github.com/kanmu/qg/v5

go 1.22.0

toolchain go1.22.8

require (
github.com/jackc/pgx/v4 v4.18.3
github.com/jackc/pgx/v5 v5.7.1
gopkg.in/guregu/null.v3 v3.0.2-0.20160228005316-41961cea0328
)

require (
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/gofrs/uuid v4.4.0+incompatible // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.14.3 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgtype v1.14.0 // indirect
github.com/lib/pq v1.10.3 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
github.com/jackc/puddle/v2 v2.2.2 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/stretchr/testify v1.9.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/sync v0.8.0 // indirect
golang.org/x/text v0.18.0 // indirect
)
181 changes: 12 additions & 169 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion que.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

null "gopkg.in/guregu/null.v3"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

// Job is a single unit of work for Que to perform.
Expand Down
4 changes: 2 additions & 2 deletions que_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4"
"github.com/kanmu/qg/v4"
"github.com/jackc/pgx/v5"
"github.com/kanmu/qg/v5"
)

var testConnConfig = func() *pgx.ConnConfig {
Expand Down
2 changes: 1 addition & 1 deletion stats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package qg_test
import (
"testing"

"github.com/kanmu/qg/v4"
"github.com/kanmu/qg/v5"
)

func TestStats(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions work_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4"
"github.com/kanmu/qg/v4"
"github.com/jackc/pgx/v5"
"github.com/kanmu/qg/v5"
)

func TestLockJob(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

"github.com/kanmu/qg/v4"
"github.com/kanmu/qg/v5"
)

func init() {
Expand Down

0 comments on commit b9e1a96

Please sign in to comment.