codegen: make modelSQLFields const use camel case instead of lowercase
This commit is contained in:
@@ -23,7 +23,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func SQLFieldsConstIdent(tbl schema.Table) *ast.Ident {
|
func SQLFieldsConstIdent(tbl schema.Table) *ast.Ident {
|
||||||
return ast.NewIdent(strings.ToLower(tbl.GoTypeName) + "SQLFields")
|
return ast.NewIdent(strings.ToLower(tbl.GoTypeName[:1]) + tbl.GoTypeName[1:] + "SQLFields")
|
||||||
}
|
}
|
||||||
|
|
||||||
// GoTypeForColumn returns a type expression for this column.
|
// GoTypeForColumn returns a type expression for this column.
|
||||||
|
|||||||
Reference in New Issue
Block a user