Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore (db): upgrade pgx to v5 #53

Merged
merged 2 commits into from
Jul 12, 2024
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
sqlite:
strategy:
matrix:
go: ["1.21", "1.20", "1.19"]
go: ["1.22", "1.21", "1.20"]
platform: [ubuntu-latest] # can not run in windows OS
runs-on: ${{ matrix.platform }}

Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
strategy:
matrix:
dbversion: ["postgres:latest"]
go: ["1.21", "1.20", "1.19"]
go: ["1.22", "1.21", "1.20"]
platform: [ubuntu-latest] # can not run in macOS and Windows
runs-on: ${{ matrix.platform }}

Expand Down
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/hashicorp/go-hclog"
"github.com/jackc/pgconn"

_ "github.com/jackc/pgx/v4" // required to load postgres drivers
_ "github.com/jackc/pgx/v5" // required to load postgres drivers
"gorm.io/driver/postgres"
"gorm.io/driver/sqlite"

Expand Down
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hashicorp/go-dbw

go 1.19
go 1.20

require (
github.com/DATA-DOG/go-sqlmock v1.5.2
Expand All @@ -9,7 +9,7 @@ require (
github.com/hashicorp/go-hclog v1.6.2
github.com/hashicorp/go-secure-stdlib/base62 v0.1.2
github.com/jackc/pgconn v1.14.3
github.com/jackc/pgx/v4 v4.18.3
github.com/jackc/pgx/v5 v5.6.0
github.com/oligot/go-mod-upgrade v0.6.1
github.com/stretchr/testify v1.9.0
github.com/xo/dburl v0.21.1
Expand All @@ -35,12 +35,11 @@ require (
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.3.3 // indirect
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect
github.com/jackc/pgtype v1.14.2 // indirect
github.com/jackc/pgx/v5 v5.5.5 // indirect
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/kr/pty v1.1.8 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-sqlite3 v1.14.22 // indirect
Expand Down
Loading
Loading