Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupByColumn ¶
Types ¶
type Column ¶
type Column struct { TableName string `gorm:"column:TABLE_NAME"` ColumnName string `gorm:"column:COLUMN_NAME"` ColumnComment string `gorm:"column:COLUMN_COMMENT"` DataType string `gorm:"column:DATA_TYPE"` ColumnKey string `gorm:"column:COLUMN_KEY"` ColumnType string `gorm:"column:COLUMN_TYPE"` ColumnDefault string `gorm:"column:COLUMN_DEFAULT"` Extra string `gorm:"column:EXTRA"` IsNullable string `gorm:"column:IS_NULLABLE"` Indexes []*Index `gorm:"-"` // contains filtered or unexported fields }
Column table column's info
func (*Column) AutoIncrement ¶
func (*Column) GetDataType ¶ added in v0.1.23
func (*Column) IsPrimaryKey ¶
func (*Column) SetDataTypeMap ¶ added in v0.1.23
type CreateMemberOpt ¶
type CreateMemberOpt ModifyMemberOpt
func (CreateMemberOpt) Self ¶
func (o CreateMemberOpt) Self() func(*Member) *Member
type DBConf ¶
type DBConf struct { ModelPkg string TableName string ModelName string SchemaNameOpts []SchemaNameOpt MemberOpts []MemberOpt DataTypeMap map[string]func(detailType string) (dataType string) GenerateModelConfig }
type FilterMemberOpt ¶
type FilterMemberOpt ModifyMemberOpt
func (FilterMemberOpt) Self ¶
func (o FilterMemberOpt) Self() func(*Member) *Member
type GenerateModelConfig ¶
type Index ¶
type Index struct { TableName string `gorm:"column:TABLE_NAME"` ColumnName string `gorm:"column:COLUMN_NAME"` IndexName string `gorm:"column:INDEX_NAME"` SeqInIndex int32 `gorm:"column:SEQ_IN_INDEX"` NonUnique int32 `gorm:"column:NON_UNIQUE"` }
Index table index info
func (*Index) IsPrimaryKey ¶
type Member ¶
type Member struct { Name string Type string ColumnName string ColumnComment string MultilineComment bool JSONTag string GORMTag string NewTag string OverwriteTag string Relation *field.Relation }
Member user input structures
func (*Member) EscapeKeyword ¶
func (*Member) IsRelation ¶
type ModifyMemberOpt ¶
func (ModifyMemberOpt) Self ¶
func (o ModifyMemberOpt) Self() func(*Member) *Member
type SchemaNameOpt ¶
Click to show internal directories.
Click to hide internal directories.