package
2.1.0-rc.2+incompatible
Repository: https://github.com/coderushing/tidb.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CastValue casts a value based on column type.
CastValues casts values based on columns type.
CheckNotNull checks if row has nil value set to a column with NotNull flag set.
CheckOnce checks if there are duplicated column names in cols.
ColDescFieldNames returns the fields name in result set for desc and show columns.
FindCol finds column in cols by name.
FindCols finds columns in cols by names.
FindOnUpdateCols finds columns which have OnUpdateNow flag.
GetColDefaultValue gets default value of the column.
GetColOriginDefaultValue gets default value of the column from original default value.
GetZeroValue gets zero value for given column type.
NewColDesc returns a new ColDesc for a column.
ToColumn converts a *model.ColumnInfo to *Column.

# Constants

DirtyTableAddRow is the constant for dirty table operation type.
DirtyTableDeleteRow is the constant for dirty table operation type.
DirtyTableTruncate is the constant for dirty table operation type.
MemoryTable , store data only in local memory.
NormalTable , store data in tikv, mocktikv and so on.
VirtualTable , store no data, just extract data from the memory struct.

# Variables

ErrColumnCantNull is used for inserting null to a not null column.
ErrColumnStateCantNone returns for column none state.
ErrColumnStateNonPublic returns for column non-public state.
ErrIndexOutBound returns for index column offset out of bound.
ErrIndexStateCantNone returns for index none state.
ErrInvalidRecordKey returns for invalid record key.
ErrNoDefaultValue is used when insert a row, the column value is not given, and the column has not null flag and it doesn't have a default value.
ErrRowNotFound returns for row not found.
ErrTableStateCantNone returns for table none state.
ErrTrgInvalidCreationCtx happens when inserting a value outside the table partitions.
ErrTruncatedWrongValueForField returns for truncate wrong value for field.
ErrTruncateWrongValue returns for truncate wrong value for field.
ErrUnsupportedOp returns for unsupported operation.
MockTableFromMeta only serves for test.
TableFromMeta builds a table.Table from *model.TableInfo.

# Structs

ColDesc describes column information like MySQL desc and show columns do.
Column provides meta data describing a table column.

# Interfaces

Index is the interface for index data on KV store.
IndexIterator is the interface for iterator of index data on KV store.
PartitionedTable is a Table, and it has a GetPartition() method.
PhysicalTable is an abstraction for two kinds of table representation: partition or non-partitioned table.
Table is used to retrieve and modify rows in table.

# Type aliases

RecordIterFunc is used for low-level record iteration.
Slice is used for table sorting.
Type , the type of table, store data in different ways.