package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
DecodeExtraTxnStatusKey decodes a extra transaction status key.
DecodeKeyTS decodes the TS in a key.
DecodeLock decodes data to lock, the primary and value is copied, the secondaries are copied if async commit is enabled.
EncodeExtraTxnStatusKey encodes a extra transaction status key.
EncodeLockCFValue encodes the mvcc lock and returns putLock value and putDefault value if exists.
EncodeWriteCFValue accepts a write cf parameters and return the encoded bytes data.
NewDBSnapshot returns a new db snapshot.
NewDBUserMeta creates a new DBUserMeta.
ParseWriteCFValue parses the []byte data and returns a WriteCFValue.
# Constants
LockType.
LockType.
LockType.
LockType.
UserMeta value for lock.
UserMeta value for lock.
ShortValueMaxLen defines max length of short value.
WriteType.
WriteType.
WriteType.
WriteType.
# Structs
DBBundle represents the db bundle.
DBSnapshot represents the db snapshot.
Lock is the structure for MVCC lock.
LockHdr holds fixed size fields for mvcc Lock.
WriteCFValue represents a write CF value.
# Interfaces
DBWriter is the interface to persistent data.
LatchHandle is the interface for handling latches.
WriteBatch is the interface to batch write.
# Type aliases
DBUserMeta is the user meta used in DB.
LockType defines a lock type.
WriteType defines a write type.