Documentation ¶
Index ¶
- Constants
- type Index
- type Table
- func (ta *Table) AddColumn(name string, columnType string, defval sqltypes.Value, extra string)
- func (ta *Table) AddIndex(name string) (index *Index)
- func (ta *Table) FindColumn(name string) int
- func (ta *Table) GetPKColumn(index int) *TableColumn
- func (ta *Table) SetMysqlStats(tr, dl, il, df sqltypes.Value)
- type TableColumn
Constants ¶
View Source
const ( CAT_OTHER = iota CAT_NUMBER CAT_VARBINARY )
Column categories
View Source
const ( CACHE_NONE = 0 CACHE_RW = 1 CACHE_W = 2 )
Cache types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct { Name string Columns []TableColumn Indexes []*Index PKColumns []int CacheType int TableRows int64 DataLength int64 IndexLength int64 DataFree int64 }
func (*Table) FindColumn ¶
func (*Table) GetPKColumn ¶
func (ta *Table) GetPKColumn(index int) *TableColumn
func (*Table) SetMysqlStats ¶
SetMysqlStats receives the values found in the mysql information_schema.tables table
Click to show internal directories.
Click to hide internal directories.