@@ -186,23 +186,23 @@ type generator struct {
186186 codegenHandlerOverride grpc.ClientConnInterface
187187}
188188
189- func (g * generator ) Pairs (ctx context.Context , conf * config.Config ) []outputPair {
190- var pairs []outputPair
189+ func (g * generator ) Pairs (ctx context.Context , conf * config.Config ) []OutputPair {
190+ var pairs []OutputPair
191191 for _ , sql := range conf .SQL {
192192 if sql .Gen .Go != nil {
193- pairs = append (pairs , outputPair {
193+ pairs = append (pairs , OutputPair {
194194 SQL : sql ,
195195 Gen : config.SQLGen {Go : sql .Gen .Go },
196196 })
197197 }
198198 if sql .Gen .JSON != nil {
199- pairs = append (pairs , outputPair {
199+ pairs = append (pairs , OutputPair {
200200 SQL : sql ,
201201 Gen : config.SQLGen {JSON : sql .Gen .JSON },
202202 })
203203 }
204204 for i := range sql .Codegen {
205- pairs = append (pairs , outputPair {
205+ pairs = append (pairs , OutputPair {
206206 SQL : sql ,
207207 Plugin : & sql .Codegen [i ],
208208 })
@@ -211,7 +211,7 @@ func (g *generator) Pairs(ctx context.Context, conf *config.Config) []outputPair
211211 return pairs
212212}
213213
214- func (g * generator ) ProcessResult (ctx context.Context , combo config.CombinedSettings , sql outputPair , result * compiler.Result ) error {
214+ func (g * generator ) ProcessResult (ctx context.Context , combo config.CombinedSettings , sql OutputPair , result * compiler.Result ) error {
215215 out , resp , err := codegen (ctx , combo , sql , result , g .codegenHandlerOverride )
216216 if err != nil {
217217 return err
@@ -282,7 +282,7 @@ func parse(ctx context.Context, name, dir string, sql config.SQL, combo config.C
282282 return c .Result (), false
283283}
284284
285- func codegen (ctx context.Context , combo config.CombinedSettings , sql outputPair , result * compiler.Result , codegenOverride grpc.ClientConnInterface ) (string , * plugin.GenerateResponse , error ) {
285+ func codegen (ctx context.Context , combo config.CombinedSettings , sql OutputPair , result * compiler.Result , codegenOverride grpc.ClientConnInterface ) (string , * plugin.GenerateResponse , error ) {
286286 defer trace .StartRegion (ctx , "codegen" ).End ()
287287 req := codeGenRequest (result , combo )
288288 var handler grpc.ClientConnInterface
0 commit comments