Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DaoCommand = cli.Command{ Name: "dao", UsageText: "generate mysql table schema to go struct and CURD code", Flags: []cli.Flag{ cli.StringFlag{Name: "host, H", Value: "localhost"}, cli.IntFlag{Name: "port, P", Value: 3306}, cli.StringFlag{Name: "user, u", Value: "root"}, cli.StringFlag{Name: "password, p", Value: "123456"}, cli.StringFlag{Name: "database, d", Required: true}, cli.StringFlag{Name: "table, t", Required: true}, }, Action: DaoCommandAction, }
View Source
var SchemaCommand = cli.Command{ Name: "schema", UsageText: "", Description: "generate mysql table schema to go struct", Flags: []cli.Flag{ cli.StringFlag{Name: "host, H", Value: "localhost"}, cli.IntFlag{Name: "port, P", Value: 3306}, cli.StringFlag{Name: "user, u", Value: "ginger_user"}, cli.StringFlag{Name: "password, p", Value: "123456"}, cli.StringFlag{Name: "database, d", Required: true}, cli.StringFlag{Name: "table, t", Required: true}, }, Action: SchemaCommandAction, }
Functions ¶
func DaoCommandAction ¶
func SchemaCommandAction ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.