menu

package
v0.0.0-...-c47cd45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: MulanPSL-2.0 Imports: 7 Imported by: 0

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

func Execute

func Execute()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL