extended api

This commit is contained in:
zhuyasen
2024-06-28 23:56:08 +08:00
parent 5888ec77d2
commit 994a90850e
52 changed files with 7909 additions and 1084 deletions

View File

@@ -39,6 +39,7 @@ type Args struct {
ColumnPrefix string
NoNullType bool
NullStyle string
IsExtendedApi bool // true: generate extended api (9 api), false: generate basic api (5 api)
}
func (a *Args) checkValid() error {
@@ -177,6 +178,9 @@ func setOptions(args *Args) []parser.Option {
if args.ForceTableName {
opts = append(opts, parser.WithForceTableName())
}
if args.IsExtendedApi {
opts = append(opts, parser.WithExtendedApi())
}
return opts
}