Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InstallCodeListCmd = &cobra.Command{ Use: "list", Short: "mysql list", Run: func(cmd *cobra.Command, args []string) { var gf = service.FindBeanGoFactroy() gf.IniDb(consts.DB_MYSQL) var tables = gf.FindMetadataTables() for _, v := range tables { fmt.Println("\t", v.TableName) } fmt.Println("total table count: ", len(tables)) }, }
View Source
var InstallCodeTableCmd = &cobra.Command{ Use: "table", Short: "mysql table tablename", Run: func(cmd *cobra.Command, args []string) { var table = cmd.Flags().Arg(0) service.MakeMysql(table) }, }
View Source
var InstallCodeTablesCmd = &cobra.Command{ Use: "tables", Short: "mysql tables", Run: func(cmd *cobra.Command, args []string) { service.MakeMysqls() }, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.