package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
ClearRow recycles the memory used by the row.
CollectGeneratedColumns collects all expressions required to evaluate the results of all generated columns.
GetActualDatum export getActualDatum function.
GetAutoRecordID returns the record ID for an auto-increment field.
GetEncoderIncrementalID return Auto increment id.
GetEncoderSe return session.
GetSession4test is only used for test.
IsAutoIncCol return true if the column is auto increment column.
MakeRowFromKvPairs converts a KvPair slice into a Row instance.
MakeRowsFromKvPairs converts a KvPair slice into a Rows instance.
NewBaseKVEncoder creates a new BaseKVEncoder.
NewPanickingAllocators creates a PanickingAllocator with default base values.
NewPanickingAllocatorsWithBase creates a PanickingAllocator shared by all allocation types.
NewSession creates a new Session.
NewTableKVDecoder creates a new TableKVDecoder.
NewTableKVEncoder creates a new tableKVEncoder.
Row2KvPairs converts a Row instance constructed from MakeRowFromKvPairs back into a slice of KvPair.
Rows2KvPairs converts a Rows instance constructed from MakeRowsFromKvPairs back into a slice of KvPair.
# Variables
ExtraHandleColumnInfo is the column info of extra handle column.
# Structs
BaseKVEncoder encodes a row into a KV pair.
BytesBuf bytes buffer.
GeneratedCol generated column info.
MemBuf used to store the data in memory.
Pairs implements the Encoder interface.
Session is used to provide context for lightning.
TableKVDecoder is a KVDecoder that decodes the key-value pairs of a table.
# Type aliases
AutoIDConverterFn is a function to convert auto id.
GroupedPairs is a map from index ID to KvPairs.
RowArrayMarshaller wraps a slice of types.Datum for logging the content into zap.