Skip to content

Commit

Permalink
Upgrade to pgx v5
Browse files Browse the repository at this point in the history
  • Loading branch information
jschaf committed Jan 2, 2024
1 parent d0025c1 commit 817cac8
Show file tree
Hide file tree
Showing 40 changed files with 84 additions and 75 deletions.
2 changes: 1 addition & 1 deletion example/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"
"flag"
"fmt"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"github.com/jschaf/pggen/internal/errs"
"github.com/jschaf/pggen/internal/pgdocker"
"math/rand"
Expand Down
4 changes: 2 additions & 2 deletions example/author/query.sql.go

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

2 changes: 1 addition & 1 deletion example/author/query.sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/require"
"testing"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"github.com/jschaf/pggen/internal/pgtest"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions example/complex_params/query.sql.go

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

4 changes: 2 additions & 2 deletions example/composite/query.sql.go

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

4 changes: 2 additions & 2 deletions example/custom_types/query.sql.go

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

4 changes: 2 additions & 2 deletions example/device/query.sql.go

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

4 changes: 2 additions & 2 deletions example/domain/query.sql.go

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

4 changes: 2 additions & 2 deletions example/enums/query.sql.go

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

4 changes: 2 additions & 2 deletions example/erp/order/customer.sql.go

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

4 changes: 2 additions & 2 deletions example/function/query.sql.go

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

4 changes: 2 additions & 2 deletions example/go_pointer_types/query.sql.go

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

4 changes: 2 additions & 2 deletions example/inline_param_count/inline0/query.sql.go

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

2 changes: 1 addition & 1 deletion example/inline_param_count/inline0/query.sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"testing"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"github.com/jschaf/pggen/internal/pgtest"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions example/inline_param_count/inline1/query.sql.go

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

2 changes: 1 addition & 1 deletion example/inline_param_count/inline1/query.sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"testing"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"github.com/jschaf/pggen/internal/pgtest"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions example/inline_param_count/inline2/query.sql.go

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

2 changes: 1 addition & 1 deletion example/inline_param_count/inline2/query.sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"testing"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"github.com/jschaf/pggen/internal/pgtest"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions example/inline_param_count/inline3/query.sql.go

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

2 changes: 1 addition & 1 deletion example/inline_param_count/inline3/query.sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/require"
"testing"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"github.com/jschaf/pggen/internal/pgtest"
"github.com/stretchr/testify/assert"
)
Expand Down
4 changes: 2 additions & 2 deletions example/ltree/query.sql.go

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

4 changes: 2 additions & 2 deletions example/nested/query.sql.go

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

4 changes: 2 additions & 2 deletions example/numeric_external/query.sql.go

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

4 changes: 2 additions & 2 deletions example/pgcrypto/query.sql.go

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

4 changes: 2 additions & 2 deletions example/separate_out_dir/out/alpha_query.sql.0.go

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

4 changes: 2 additions & 2 deletions example/slices/query.sql.go

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

4 changes: 2 additions & 2 deletions example/syntax/query.sql.go

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

4 changes: 2 additions & 2 deletions example/void/query.sql.go

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

2 changes: 1 addition & 1 deletion generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"errors"
"fmt"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"github.com/jschaf/pggen/internal/ast"
"github.com/jschaf/pggen/internal/codegen"
"github.com/jschaf/pggen/internal/codegen/golang"
Expand Down
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ require (
github.com/jackc/pgproto3/v2 v2.3.2
github.com/jackc/pgtype v1.14.0
github.com/jackc/pgx/v4 v4.18.1
github.com/jackc/pgx/v5 v5.5.1
github.com/peterbourgon/ff/v3 v3.4.0
github.com/shopspring/decimal v1.3.1
github.com/stretchr/testify v1.8.4
Expand All @@ -26,16 +27,16 @@ require (
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/kr/pretty v0.2.1 // indirect
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 // indirect
github.com/morikuni/aec v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/crypto v0.16.0 // indirect
github.com/rogpeppe/go-internal v1.6.1 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sync v0.4.0 // indirect
golang.org/x/sys v0.15.0 // indirect
Expand Down
Loading

0 comments on commit 817cac8

Please sign in to comment.