when using UseTypeName for sql builder,
it will rename generation of {{tableTemplate.TypeName}} while also renaming {{structImplName}}.
this made duplicate of declaration like this:
type myStruct struct {
// Columns
}
type myStruct struct {
myStruct
EXCLUDED myStruct
}
specifically this file_templates.go
is there any option to fix this currently?
I dig the test cases and found UseTypeName is using utils.ToGoIdentifier(table.Name) then I copy it from the dbidentifier.go since it is from internal folder then all is good.
when using
UseTypeName
for sql builder, it will rename generation of{{tableTemplate.TypeName}}
while also renaming{{structImplName}}
. this made duplicate of declaration like this:specifically this file_templates.go is there any option to fix this currently?