Skip to content

Commit

Permalink
Remove QuerierConfig
Browse files Browse the repository at this point in the history
It was a way to override the type encoders and decoders. It wasn't documented
and makes it harder to upgrade to to pgx v5. Plus, we can't really change it in
a way to that won't break existing users, so just remove it.e
  • Loading branch information
jschaf committed Jan 2, 2024
1 parent d0025c1 commit 1748c3f
Show file tree
Hide file tree
Showing 43 changed files with 59 additions and 1,049 deletions.
8 changes: 0 additions & 8 deletions example/acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,6 @@ func TestExamples(t *testing.T) {
"--go-type", "text=string",
},
},
{
name: "example/numeric_external",
args: []string{
"--schema-glob", "example/numeric_external/schema.sql",
"--query-glob", "example/numeric_external/query.sql",
"--go-type", "numeric=github.com/shopspring/decimal.Decimal",
},
},
{
name: "example/domain",
args: []string{
Expand Down
26 changes: 2 additions & 24 deletions example/author/query.sql.go

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

26 changes: 2 additions & 24 deletions example/complex_params/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/complex_params/query.sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func TestNewQuerier_ParamNested3_QueryAllDataTypes(t *testing.T) {
ctx := context.Background()
// dataTypes, err := QueryAllDataTypes(ctx, conn)
// require.NoError(t, err)
q := NewQuerierConfig(conn, QuerierConfig{DataTypes: nil})
q := NewQuerier(conn)

want := ProductImageSetType{
Name: "set1",
Expand Down
26 changes: 2 additions & 24 deletions example/composite/query.sql.go

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading

0 comments on commit 1748c3f

Please sign in to comment.