reactor sql generation

This commit is contained in:
anqiansong
2020-08-12 09:19:37 +08:00
parent 40895ba8d9
commit f226ffb57c
45 changed files with 892 additions and 1045 deletions

View File

@@ -0,0 +1,14 @@
package command
import (
"github.com/tal-tech/go-zero/tools/goctl/model/sql/gen"
"github.com/urfave/cli"
)
func Mysql(ctx *cli.Context) error {
src := ctx.String("src")
dir := ctx.String("dir")
cache := ctx.Bool("cache")
generator := gen.NewDefaultGenerator(src, dir)
return generator.Start(cache)
}