Skip to content

Commit

Permalink
update fieldName impl
Browse files Browse the repository at this point in the history
  • Loading branch information
kfly8 committed Aug 7, 2024
1 parent 53979b3 commit 38f3ec1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ func structName(name string, options *opts.Options) string {
}

func fieldName(name string, options *opts.Options) string {
return structName(name, options)
if rename := options.Rename[name]; rename != "" {
return rename
}
return name;
}

func perlType(req *plugin.GenerateRequest, options *opts.Options, column *plugin.Column) string {
Expand Down

0 comments on commit 38f3ec1

Please sign in to comment.