Versions in this module Expand all Collapse all v1 v1.1.0-alpha.1 Jan 19, 2018 v1.1.0-alpha Oct 31, 2017 v1.0.7 Jan 19, 2018 v1.0.6 Jan 8, 2018 v1.0.5 Dec 26, 2017 v1.0.4 Dec 11, 2017 v1.0.3 Nov 25, 2017 v1.0.2 Nov 13, 2017 v1.0.1 Oct 31, 2017 v1.0.0 Oct 16, 2017 Changes in this version + func FindIndexByColName(t table.Table, name string) table.Index + func GetColDefaultValue(ctx context.Context, col *table.Column, defaultVals []types.Datum) (colVal types.Datum, err error) + func MemoryTableFromMeta(alloc autoid.Allocator, tblInfo *model.TableInfo) table.Table + func MockTableFromMeta(tableInfo *model.TableInfo) table.Table + func NewIndex(tableInfo *model.TableInfo, indexInfo *model.IndexInfo) table.Index + func NewIndexWithBuffer(tableInfo *model.TableInfo, indexInfo *model.IndexInfo) table.Index + func TableFromMeta(alloc autoid.Allocator, tblInfo *model.TableInfo) (table.Table, error) + type MemoryTable struct + Columns []*table.Column + ID int64 + Name model.CIStr + func (t *MemoryTable) AddRecord(ctx context.Context, r []types.Datum) (recordID int64, err error) + func (t *MemoryTable) AllocAutoID() (int64, error) + func (t *MemoryTable) Allocator() autoid.Allocator + func (t *MemoryTable) Cols() []*table.Column + func (t *MemoryTable) DeletableIndices() []table.Index + func (t *MemoryTable) FirstKey() kv.Key + func (t *MemoryTable) IndexPrefix() kv.Key + func (t *MemoryTable) Indices() []table.Index + func (t *MemoryTable) IterRecords(ctx context.Context, startKey kv.Key, cols []*table.Column, ...) error + func (t *MemoryTable) Meta() *model.TableInfo + func (t *MemoryTable) RebaseAutoID(newBase int64, isSetStep bool) error + func (t *MemoryTable) RecordKey(h int64) kv.Key + func (t *MemoryTable) RecordPrefix() kv.Key + func (t *MemoryTable) RemoveRecord(ctx context.Context, h int64, r []types.Datum) error + func (t *MemoryTable) Row(ctx context.Context, h int64) ([]types.Datum, error) + func (t *MemoryTable) RowWithCols(ctx context.Context, h int64, cols []*table.Column) ([]types.Datum, error) + func (t *MemoryTable) Seek(ctx context.Context, handle int64) (int64, bool, error) + func (t *MemoryTable) Truncate() + func (t *MemoryTable) Type() table.Type + func (t *MemoryTable) UpdateRecord(ctx context.Context, h int64, oldData, newData []types.Datum, touched []bool) error + func (t *MemoryTable) WritableCols() []*table.Column + func (t *MemoryTable) WritableIndices() []table.Index + type Table struct + Columns []*table.Column + ID int64 + Name model.CIStr + func (t *Table) AddRecord(ctx context.Context, r []types.Datum) (recordID int64, err error) + func (t *Table) AllocAutoID() (int64, error) + func (t *Table) Allocator() autoid.Allocator + func (t *Table) Cols() []*table.Column + func (t *Table) DeletableIndices() []table.Index + func (t *Table) FirstKey() kv.Key + func (t *Table) IndexPrefix() kv.Key + func (t *Table) Indices() []table.Index + func (t *Table) IterRecords(ctx context.Context, startKey kv.Key, cols []*table.Column, ...) error + func (t *Table) Meta() *model.TableInfo + func (t *Table) RebaseAutoID(newBase int64, isSetStep bool) error + func (t *Table) RecordKey(h int64) kv.Key + func (t *Table) RecordPrefix() kv.Key + func (t *Table) RemoveRecord(ctx context.Context, h int64, r []types.Datum) error + func (t *Table) Row(ctx context.Context, h int64) ([]types.Datum, error) + func (t *Table) RowWithCols(ctx context.Context, h int64, cols []*table.Column) ([]types.Datum, error) + func (t *Table) Seek(ctx context.Context, h int64) (int64, bool, error) + func (t *Table) Type() table.Type + func (t *Table) UpdateRecord(ctx context.Context, h int64, oldData, newData []types.Datum, touched []bool) error + func (t *Table) WritableCols() []*table.Column + func (t *Table) WritableIndices() []table.Index + type VirtualDataSource interface + Cols func() []*table.Column + GetRows func(ctx context.Context) (fullRows [][]types.Datum, err error) + Meta func() *model.TableInfo + type VirtualTable struct + func CreateVirtualTable(dataSource VirtualDataSource) *VirtualTable + func (vt *VirtualTable) AddRecord(ctx context.Context, r []types.Datum) (recordID int64, err error) + func (vt *VirtualTable) AllocAutoID() (int64, error) + func (vt *VirtualTable) Allocator() autoid.Allocator + func (vt *VirtualTable) Cols() []*table.Column + func (vt *VirtualTable) DeletableIndices() []table.Index + func (vt *VirtualTable) FirstKey() kv.Key + func (vt *VirtualTable) IndexPrefix() kv.Key + func (vt *VirtualTable) Indices() []table.Index + func (vt *VirtualTable) IterRecords(ctx context.Context, startKey kv.Key, cols []*table.Column, ...) error + func (vt *VirtualTable) Meta() *model.TableInfo + func (vt *VirtualTable) RebaseAutoID(newBase int64, isSetStep bool) error + func (vt *VirtualTable) RecordKey(h int64) kv.Key + func (vt *VirtualTable) RecordPrefix() kv.Key + func (vt *VirtualTable) RemoveRecord(ctx context.Context, h int64, r []types.Datum) error + func (vt *VirtualTable) Row(ctx context.Context, h int64) ([]types.Datum, error) + func (vt *VirtualTable) RowWithCols(ctx context.Context, h int64, cols []*table.Column) ([]types.Datum, error) + func (vt *VirtualTable) Seek(ctx context.Context, h int64) (int64, bool, error) + func (vt *VirtualTable) Type() table.Type + func (vt *VirtualTable) UpdateRecord(ctx context.Context, h int64, oldData, newData []types.Datum, touched []bool) error + func (vt *VirtualTable) WritableCols() []*table.Column + func (vt *VirtualTable) WritableIndices() []table.Index