99	"strconv" 
1010	"strings" 
1111
12- 	"buf.build/gen/go/ sqlc/sqlc/protocolbuffers/ go/protos/plugin " 
13- 	"github.com/sqlc-dev/sqlc- go/metadata " 
14- 	"github.com/sqlc-dev/sqlc -go/sdk" 
12+ 	"github.com/ sqlc-dev/plugin-sdk- go/metadata " 
13+ 	"github.com/sqlc-dev/plugin-sdk- go/plugin " 
14+ 	"github.com/sqlc-dev/plugin-sdk -go/sdk" 
1515
1616	"github.com/sqlc-dev/sqlc-gen-kotlin/internal/inflection" 
1717)
@@ -230,7 +230,7 @@ func ktEnumValueName(value string) string {
230230	return  strings .ToUpper (id )
231231}
232232
233- func  BuildEnums (req  * plugin.CodeGenRequest ) []Enum  {
233+ func  BuildEnums (req  * plugin.GenerateRequest ) []Enum  {
234234	var  enums  []Enum 
235235	for  _ , schema  :=  range  req .Catalog .Schemas  {
236236		if  schema .Name  ==  "pg_catalog"  ||  schema .Name  ==  "information_schema"  {
@@ -264,9 +264,6 @@ func BuildEnums(req *plugin.CodeGenRequest) []Enum {
264264}
265265
266266func  dataClassName (name  string , settings  * plugin.Settings ) string  {
267- 	if  rename  :=  settings .Rename [name ]; rename  !=  ""  {
268- 		return  rename 
269- 	}
270267	out  :=  "" 
271268	for  _ , p  :=  range  strings .Split (name , "_" ) {
272269		out  +=  strings .Title (p )
@@ -278,7 +275,7 @@ func memberName(name string, settings *plugin.Settings) string {
278275	return  sdk .LowerTitle (dataClassName (name , settings ))
279276}
280277
281- func  BuildDataClasses (conf  Config , req  * plugin.CodeGenRequest ) []Struct  {
278+ func  BuildDataClasses (conf  Config , req  * plugin.GenerateRequest ) []Struct  {
282279	var  structs  []Struct 
283280	for  _ , schema  :=  range  req .Catalog .Schemas  {
284281		if  schema .Name  ==  "pg_catalog"  ||  schema .Name  ==  "information_schema"  {
@@ -367,7 +364,7 @@ func (t ktType) IsUUID() bool {
367364	return  t .Name  ==  "UUID" 
368365}
369366
370- func  makeType (req  * plugin.CodeGenRequest , col  * plugin.Column ) ktType  {
367+ func  makeType (req  * plugin.GenerateRequest , col  * plugin.Column ) ktType  {
371368	typ , isEnum  :=  ktInnerType (req , col )
372369	return  ktType {
373370		Name :     typ ,
@@ -379,7 +376,7 @@ func makeType(req *plugin.CodeGenRequest, col *plugin.Column) ktType {
379376	}
380377}
381378
382- func  ktInnerType (req  * plugin.CodeGenRequest , col  * plugin.Column ) (string , bool ) {
379+ func  ktInnerType (req  * plugin.GenerateRequest , col  * plugin.Column ) (string , bool ) {
383380	// TODO: Extend the engine interface to handle types 
384381	switch  req .Settings .Engine  {
385382	case  "mysql" :
@@ -396,7 +393,7 @@ type goColumn struct {
396393	* plugin.Column 
397394}
398395
399- func  ktColumnsToStruct (req  * plugin.CodeGenRequest , name  string , columns  []goColumn , namer  func (* plugin.Column , int ) string ) * Struct  {
396+ func  ktColumnsToStruct (req  * plugin.GenerateRequest , name  string , columns  []goColumn , namer  func (* plugin.Column , int ) string ) * Struct  {
400397	gs  :=  Struct {
401398		Name : name ,
402399	}
@@ -480,7 +477,7 @@ func parseInts(s []string) ([]int, error) {
480477	return  refs , nil 
481478}
482479
483- func  BuildQueries (req  * plugin.CodeGenRequest , structs  []Struct ) ([]Query , error ) {
480+ func  BuildQueries (req  * plugin.GenerateRequest , structs  []Struct ) ([]Query , error ) {
484481	qs  :=  make ([]Query , 0 , len (req .Queries ))
485482	for  _ , query  :=  range  req .Queries  {
486483		if  query .Name  ==  ""  {
0 commit comments