Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { DB string Table string OriginTable string Column string OriginColumn string DataType string DataLen int Func bool NewFunc bool Options []ast.ColumnOptionType }
Column defines database column
func (*Column) AddOption ¶
func (c *Column) AddOption(opt ast.ColumnOptionType)
AddOption add option for column
type Table ¶
type Table struct { DB string Table string OriginTable string Type string Columns map[string]*Column Indexes []string // Online is for self obtain, // which means this table is online and will be manipulated in a txn Online bool // OnlineOther is for other instances obtain, // which means this table is being manipulated in other txns and should not be a DDL table OnlineOther bool InnerTableList []*Table }
Table defines database table
func (*Table) AddToInnerTables ¶
AddToInnerTables Do NOT set InnerTableList directly
Click to show internal directories.
Click to hide internal directories.