Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var YamlExt = ".yaml"
YamlExt is local file ext
View Source
var YamlFile = ".gen-model"
YamlFile is config file
View Source
var YamlMap = "FieldMapper"
YamlMap is local mapper file suffix
Functions ¶
func GenConfigYaml ¶
func GenConfigYaml(cmdRequest *CmdRequest)
GenConfigYaml can generate config in app path
Types ¶
type CmdRequest ¶
CmdRequest is request arguments manager
func (*CmdRequest) CreateModelStruct ¶
func (g *CmdRequest) CreateModelStruct()
CreateModelStruct handler
func (*CmdRequest) SetDataByViper ¶
func (g *CmdRequest) SetDataByViper()
SetDataByViper bind viper value
type SchemaColumn ¶
type SchemaColumn struct { ColumnName string `gorm:"column:COLUMN_NAME"` ColumnKey string `gorm:"column:COLUMN_KEY"` DataType string `gorm:"column:DATA_TYPE"` IsNullable string `gorm:"column:IS_NULLABLE"` ColumnComment string `gorm:"column:COLUMN_COMMENT"` }
SchemaColumn show table information_schema.COLUMNS fields
type SchemaTable ¶
type SchemaTable struct { TableSchema string `gorm:"column:TABLE_SCHEMA"` TableNameAlias string `gorm:"column:TABLE_NAME"` }
SchemaTable show table information_schema.TABLES fields
Click to show internal directories.
Click to hide internal directories.