package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
DecodeKey decodes an key/timestamp from its serialized representation.
ScanDecodeKeyValue decodes a key/value pair from a binary stream, such as in an MVCCScan "batch" (this is not the RocksDB batch repr format), returning the key/value, the timestamp, and the suffix of data remaining in the batch.
ScanDecodeKeyValueNoTS decodes a key/value pair from a binary stream, such as in an MVCCScan "batch" (this is not the RocksDB batch repr format), returning the key/value and the suffix of data remaining in the batch.
ScanDecodeKeyValues decodes all key/value pairs returned in one or more MVCCScan "batches" (this is not the RocksDB batch repr format).
SplitMVCCKey returns the key and timestamp components of an encoded MVCC key.
TxnSeqIsIgnored returns true iff the supplied sequence number overlaps with any range in the ignored array.
# Constants
MaxTxnPriority is the maximum allowed txn priority.
MinTxnPriority is the minimum allowed txn priority.
# Variables
FormatBytesAsKey is injected by module roachpb as dependency upon initialization.
FormatBytesAsValue is injected by module roachpb as dependency upon initialization.
# Type aliases
TxnEpoch is a zero-indexed epoch for a transaction.
TxnPriority defines the priority that a transaction operates at.
TxnSeq is a zero-indexed sequence number assigned to a request performed by a transaction.