Skip to content

Commit

Permalink
chore(deps): Bumping to pgx v5
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Feb 13, 2023
1 parent e1ed524 commit 2411f67
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 181 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ style:
mocks:
find . -name "mocks" -type d -exec rm -r "{}" \+
go generate -run mockgen $(PACKAGES)
mockgen -destination pkg/mocks/pgx.go -package mocks -mock_names Row=Row,Rows=Rows github.com/jackc/pgx/v4 Row,Rows
mockgen -destination pkg/mocks/pgx.go -package mocks -mock_names Row=Row,Rows=Rows github.com/jackc/pgx/v5 Row,Rows

## test: Shortcut to launch all the test tasks (unit, functional and integration).
.PHONY: test
Expand Down
16 changes: 7 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ module github.com/ViBiOh/ketchup
go 1.20

require (
github.com/ViBiOh/auth/v2 v2.14.21
github.com/ViBiOh/auth/v2 v2.14.22
github.com/ViBiOh/flags v1.2.0
github.com/ViBiOh/httputils/v4 v4.53.4
github.com/ViBiOh/httputils/v4 v4.53.5
github.com/ViBiOh/mailer v1.30.19
github.com/golang/mock v1.6.0
github.com/jackc/pgconn v1.13.0
github.com/jackc/pgproto3/v2 v2.3.1
github.com/jackc/pgx/v4 v4.17.2
github.com/jackc/pgx/v5 v5.3.0
github.com/prometheus/client_golang v1.14.0
go.opentelemetry.io/otel/trace v1.13.0
gopkg.in/yaml.v3 v3.0.1
Expand All @@ -24,17 +22,16 @@ require (
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect
github.com/jackc/pgtype v1.13.0 // indirect
github.com/jackc/puddle v1.3.0 // indirect
github.com/jackc/puddle/v2 v2.2.0 // indirect
github.com/kr/text v0.1.0 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.39.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/redis/go-redis/v9 v9.0.2 // indirect
github.com/rogpeppe/go-internal v1.9.0 // indirect
github.com/streadway/amqp v1.0.0 // indirect
github.com/tdewolff/minify/v2 v2.12.4 // indirect
github.com/tdewolff/parse/v2 v2.6.4 // indirect
Expand All @@ -44,6 +41,7 @@ require (
go.opentelemetry.io/otel/metric v0.36.0 // indirect
go.opentelemetry.io/otel/sdk v1.13.0 // indirect
golang.org/x/crypto v0.6.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/term v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
Expand Down
169 changes: 13 additions & 156 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/mocks/database.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 19 additions & 5 deletions pkg/mocks/pgx.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/model/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package model
import (
"context"

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

//go:generate mockgen -source database.go -destination ../mocks/database.go -mock_names Database=Database -package mocks
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/ketchup/ketchup.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"

"github.com/ViBiOh/ketchup/pkg/model"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

// App of package
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/ketchup/ketchup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/ViBiOh/ketchup/pkg/mocks"
"github.com/ViBiOh/ketchup/pkg/model"
"github.com/golang/mock/gomock"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"

"github.com/ViBiOh/ketchup/pkg/model"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

// App of package
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/repository/repository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/ViBiOh/ketchup/pkg/mocks"
"github.com/ViBiOh/ketchup/pkg/model"
"github.com/golang/mock/gomock"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/repository/repository_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/ViBiOh/ketchup/pkg/model"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

const listRepositoryVersionsForIDsQuery = `
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/repository/repository_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/ViBiOh/ketchup/pkg/mocks"
"github.com/ViBiOh/ketchup/pkg/model"
"github.com/golang/mock/gomock"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

var errFailed = errors.New("timeout")
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/ViBiOh/ketchup/pkg/model"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

// App of the package
Expand Down
2 changes: 1 addition & 1 deletion pkg/store/user/user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/ViBiOh/ketchup/pkg/mocks"
"github.com/ViBiOh/ketchup/pkg/model"
"github.com/golang/mock/gomock"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

var testEmail = "nobody@localhost"
Expand Down

0 comments on commit 2411f67

Please sign in to comment.