cmd

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 15 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "ezorm",
	Short: "ezorm",
	Long: `ezorm is an code-generation based ORM lib for golang, supporting mongodb/sql server/mysql. 
data model is defined with YAML file`,
}

This represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type ColumnInfo

type ColumnInfo struct {
	ColumnName    string        `db:"ColumnName"`
	DataType      string        `db:"DataType"`
	MaxLength     int           `db:"MaxLength"`
	Nullable      bool          `db:"Nullable"`
	IsPrimaryKey  bool          `db:"IsPrimaryKey"`
	Sort          int           `db:"Sort"`
	IndexId       sql.NullInt64 `db:"IndexId"`
	IndexColumnId sql.NullInt64 `db:"IndexColumnId"`
	IsUnique      sql.NullBool  `db:"IsUnique"`
}

Jump to

Keyboard shortcuts

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