From 104c6ec88482326f2ed338d9ca29afec674d749a Mon Sep 17 00:00:00 2001
From: Joe Schafer <joe@jschaf.com>
Date: Wed, 3 Jan 2024 15:45:03 -0800
Subject: [PATCH] Remove reference to NewQuerierConfig (#101)

Follow-up to #100.
---
 example/author/query.sql.go                       | 3 +--
 example/complex_params/query.sql.go               | 3 +--
 example/composite/query.sql.go                    | 3 +--
 example/custom_types/query.sql.go                 | 3 +--
 example/device/query.sql.go                       | 3 +--
 example/domain/query.sql.go                       | 3 +--
 example/enums/query.sql.go                        | 3 +--
 example/erp/order/customer.sql.go                 | 3 +--
 example/function/query.sql.go                     | 3 +--
 example/go_pointer_types/query.sql.go             | 3 +--
 example/inline_param_count/inline0/query.sql.go   | 3 +--
 example/inline_param_count/inline1/query.sql.go   | 3 +--
 example/inline_param_count/inline2/query.sql.go   | 3 +--
 example/inline_param_count/inline3/query.sql.go   | 3 +--
 example/ltree/query.sql.go                        | 3 +--
 example/nested/query.sql.go                       | 3 +--
 example/pgcrypto/query.sql.go                     | 3 +--
 example/separate_out_dir/out/alpha_query.sql.0.go | 3 +--
 example/slices/query.sql.go                       | 3 +--
 example/syntax/query.sql.go                       | 3 +--
 example/void/query.sql.go                         | 3 +--
 internal/codegen/golang/query.gotemplate          | 3 +--
 internal/pg/query.sql.go                          | 3 +--
 23 files changed, 23 insertions(+), 46 deletions(-)

diff --git a/example/author/query.sql.go b/example/author/query.sql.go
index 02c4ed6e..7d8bb3b2 100644
--- a/example/author/query.sql.go
+++ b/example/author/query.sql.go
@@ -333,8 +333,7 @@ func (q *DBQuerier) ArrayAggFirstName(ctx context.Context, authorID int32) ([]st
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/complex_params/query.sql.go b/example/complex_params/query.sql.go
index 37dd5a03..4cffb54f 100644
--- a/example/complex_params/query.sql.go
+++ b/example/complex_params/query.sql.go
@@ -346,8 +346,7 @@ func (q *DBQuerier) ParamNested3(ctx context.Context, imageSet ProductImageSetTy
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/composite/query.sql.go b/example/composite/query.sql.go
index 715e9df3..cb63dcab 100644
--- a/example/composite/query.sql.go
+++ b/example/composite/query.sql.go
@@ -378,8 +378,7 @@ func (q *DBQuerier) UserEmails(ctx context.Context) (UserEmail, error) {
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/custom_types/query.sql.go b/example/custom_types/query.sql.go
index 2d6039a7..1d04e211 100644
--- a/example/custom_types/query.sql.go
+++ b/example/custom_types/query.sql.go
@@ -144,8 +144,7 @@ func (q *DBQuerier) IntArray(ctx context.Context) ([][]int32, error) {
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/device/query.sql.go b/example/device/query.sql.go
index 60b4ed7b..b9412142 100644
--- a/example/device/query.sql.go
+++ b/example/device/query.sql.go
@@ -344,8 +344,7 @@ func (q *DBQuerier) InsertDevice(ctx context.Context, mac pgtype.Macaddr, owner
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/domain/query.sql.go b/example/domain/query.sql.go
index 9c9d623e..1e6f3712 100644
--- a/example/domain/query.sql.go
+++ b/example/domain/query.sql.go
@@ -97,8 +97,7 @@ func (q *DBQuerier) DomainOne(ctx context.Context) (string, error) {
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/enums/query.sql.go b/example/enums/query.sql.go
index 2fb4eb1f..12e425ea 100644
--- a/example/enums/query.sql.go
+++ b/example/enums/query.sql.go
@@ -343,8 +343,7 @@ func (q *DBQuerier) EnumInsideComposite(ctx context.Context) (Device, error) {
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/erp/order/customer.sql.go b/example/erp/order/customer.sql.go
index 0e0ecb48..e8e8e18f 100644
--- a/example/erp/order/customer.sql.go
+++ b/example/erp/order/customer.sql.go
@@ -240,8 +240,7 @@ func (q *DBQuerier) InsertOrder(ctx context.Context, params InsertOrderParams) (
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/function/query.sql.go b/example/function/query.sql.go
index 70b22936..1ff5dbdb 100644
--- a/example/function/query.sql.go
+++ b/example/function/query.sql.go
@@ -210,8 +210,7 @@ func (q *DBQuerier) OutParams(ctx context.Context) ([]OutParamsRow, error) {
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/go_pointer_types/query.sql.go b/example/go_pointer_types/query.sql.go
index 4df82056..765cd47d 100644
--- a/example/go_pointer_types/query.sql.go
+++ b/example/go_pointer_types/query.sql.go
@@ -213,8 +213,7 @@ func (q *DBQuerier) GenSeriesStr(ctx context.Context) ([]*string, error) {
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/inline_param_count/inline0/query.sql.go b/example/inline_param_count/inline0/query.sql.go
index 67756736..3d292b2b 100644
--- a/example/inline_param_count/inline0/query.sql.go
+++ b/example/inline_param_count/inline0/query.sql.go
@@ -173,8 +173,7 @@ func (q *DBQuerier) DeleteAuthorsByFullName(ctx context.Context, params DeleteAu
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/inline_param_count/inline1/query.sql.go b/example/inline_param_count/inline1/query.sql.go
index cec63102..55a9fccb 100644
--- a/example/inline_param_count/inline1/query.sql.go
+++ b/example/inline_param_count/inline1/query.sql.go
@@ -169,8 +169,7 @@ func (q *DBQuerier) DeleteAuthorsByFullName(ctx context.Context, params DeleteAu
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/inline_param_count/inline2/query.sql.go b/example/inline_param_count/inline2/query.sql.go
index 01030c31..87644889 100644
--- a/example/inline_param_count/inline2/query.sql.go
+++ b/example/inline_param_count/inline2/query.sql.go
@@ -164,8 +164,7 @@ func (q *DBQuerier) DeleteAuthorsByFullName(ctx context.Context, params DeleteAu
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/inline_param_count/inline3/query.sql.go b/example/inline_param_count/inline3/query.sql.go
index 3f8dec58..8a2388d0 100644
--- a/example/inline_param_count/inline3/query.sql.go
+++ b/example/inline_param_count/inline3/query.sql.go
@@ -158,8 +158,7 @@ func (q *DBQuerier) DeleteAuthorsByFullName(ctx context.Context, firstName strin
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/ltree/query.sql.go b/example/ltree/query.sql.go
index 1268e1e9..45788cf3 100644
--- a/example/ltree/query.sql.go
+++ b/example/ltree/query.sql.go
@@ -183,8 +183,7 @@ func (q *DBQuerier) FindLtreeInput(ctx context.Context, inLtree pgtype.Text, inL
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/nested/query.sql.go b/example/nested/query.sql.go
index 2d2842ce..d1bc66bf 100644
--- a/example/nested/query.sql.go
+++ b/example/nested/query.sql.go
@@ -250,8 +250,7 @@ func (q *DBQuerier) Nested3(ctx context.Context) ([]ProductImageSetType, error)
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/pgcrypto/query.sql.go b/example/pgcrypto/query.sql.go
index 142766e9..4f298a35 100644
--- a/example/pgcrypto/query.sql.go
+++ b/example/pgcrypto/query.sql.go
@@ -118,8 +118,7 @@ func (q *DBQuerier) FindUser(ctx context.Context, email string) (FindUserRow, er
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/separate_out_dir/out/alpha_query.sql.0.go b/example/separate_out_dir/out/alpha_query.sql.0.go
index aea23a4a..9084d096 100644
--- a/example/separate_out_dir/out/alpha_query.sql.0.go
+++ b/example/separate_out_dir/out/alpha_query.sql.0.go
@@ -191,8 +191,7 @@ func (q *DBQuerier) AlphaCompositeArray(ctx context.Context) ([]Alpha, error) {
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/slices/query.sql.go b/example/slices/query.sql.go
index ac05d394..3f4e6bfc 100644
--- a/example/slices/query.sql.go
+++ b/example/slices/query.sql.go
@@ -228,8 +228,7 @@ func (q *DBQuerier) GetManyTimestamps(ctx context.Context, data []*time.Time) ([
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/syntax/query.sql.go b/example/syntax/query.sql.go
index fb9d494b..0a825677 100644
--- a/example/syntax/query.sql.go
+++ b/example/syntax/query.sql.go
@@ -242,8 +242,7 @@ func (q *DBQuerier) GoKeyword(ctx context.Context, go_ string) (string, error) {
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/example/void/query.sql.go b/example/void/query.sql.go
index 739055c3..d48b47d9 100644
--- a/example/void/query.sql.go
+++ b/example/void/query.sql.go
@@ -171,8 +171,7 @@ func (q *DBQuerier) VoidThree2(ctx context.Context) ([]string, error) {
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/internal/codegen/golang/query.gotemplate b/internal/codegen/golang/query.gotemplate
index cbf53a9a..201e5551 100644
--- a/internal/codegen/golang/query.gotemplate
+++ b/internal/codegen/golang/query.gotemplate
@@ -117,8 +117,7 @@ func (q *DBQuerier) {{ $q.Name }}(ctx context.Context {{- $q.EmitParams }}) ({{
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string
diff --git a/internal/pg/query.sql.go b/internal/pg/query.sql.go
index 877d4862..47023076 100644
--- a/internal/pg/query.sql.go
+++ b/internal/pg/query.sql.go
@@ -412,8 +412,7 @@ func (q *DBQuerier) FindOIDNames(ctx context.Context, oid []uint32) ([]FindOIDNa
 // textPreferrer wraps a pgtype.ValueTranscoder and sets the preferred encoding
 // format to text instead binary (the default). pggen uses the text format
 // when the OID is unknownOID because the binary format requires the OID.
-// Typically occurs if the results from QueryAllDataTypes aren't passed to
-// NewQuerierConfig.
+// Typically occurs for unregistered types.
 type textPreferrer struct {
 	pgtype.ValueTranscoder
 	typeName string