@@ -5,13 +5,14 @@ import (
55 "sort"
66 "strings"
77
8+ "github.com/sqlc-dev/sqlc/internal/codegen/golang/opts"
89 "github.com/sqlc-dev/sqlc/internal/codegen/sdk"
910 "github.com/sqlc-dev/sqlc/internal/inflection"
1011 "github.com/sqlc-dev/sqlc/internal/metadata"
1112 "github.com/sqlc-dev/sqlc/internal/plugin"
1213)
1314
14- func buildEnums (req * plugin.CodeGenRequest , options * opts ) []Enum {
15+ func buildEnums (req * plugin.CodeGenRequest , options * opts. Options ) []Enum {
1516 var enums []Enum
1617 for _ , schema := range req .Catalog .Schemas {
1718 if schema .Name == "pg_catalog" || schema .Name == "information_schema" {
@@ -58,7 +59,7 @@ func buildEnums(req *plugin.CodeGenRequest, options *opts) []Enum {
5859 return enums
5960}
6061
61- func buildStructs (req * plugin.CodeGenRequest , options * opts ) []Struct {
62+ func buildStructs (req * plugin.CodeGenRequest , options * opts. Options ) []Struct {
6263 var structs []Struct
6364 for _ , schema := range req .Catalog .Schemas {
6465 if schema .Name == "pg_catalog" || schema .Name == "information_schema" {
@@ -181,7 +182,7 @@ func argName(name string) string {
181182 return out
182183}
183184
184- func buildQueries (req * plugin.CodeGenRequest , options * opts , structs []Struct ) ([]Query , error ) {
185+ func buildQueries (req * plugin.CodeGenRequest , options * opts. Options , structs []Struct ) ([]Query , error ) {
185186 qs := make ([]Query , 0 , len (req .Queries ))
186187 for _ , query := range req .Queries {
187188 if query .Name == "" {
@@ -331,7 +332,7 @@ func putOutColumns(query *plugin.Query) bool {
331332// JSON tags: count, count_2, count_2
332333//
333334// This is unlikely to happen, so don't fix it yet
334- func columnsToStruct (req * plugin.CodeGenRequest , options * opts , name string , columns []goColumn , useID bool ) (* Struct , error ) {
335+ func columnsToStruct (req * plugin.CodeGenRequest , options * opts. Options , name string , columns []goColumn , useID bool ) (* Struct , error ) {
335336 gs := Struct {
336337 Name : name ,
337338 }
0 commit comments