Documentation ¶
Index ¶
Constants ¶
const ( SI = txnsnapshot.SI RC = txnsnapshot.RC RCCheckTS = txnsnapshot.RCCheckTS )
IsoLevel value for transaction priority.
const ( PriorityHigh = txnutil.PriorityHigh PriorityNormal = txnutil.PriorityNormal PriorityLow = txnutil.PriorityLow )
Priority value for transaction priority.
const MaxTxnTimeUse = transaction.MaxTxnTimeUse
MaxTxnTimeUse is the max time a Txn may use (in ms) from its begin to commit. We use it to abort the transaction to guarantee GC worker will not influence it.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinlogWriteResult ¶
type BinlogWriteResult = transaction.BinlogWriteResult
BinlogWriteResult defines the result of prewrite binlog.
type ClientOpt ¶ added in v2.0.5
type ClientOpt func(*option)
ClientOpt is factory to set the client options.
func WithAPIVersion ¶ added in v2.0.5
func WithAPIVersion(apiVersion kvrpcpb.APIVersion) ClientOpt
WithAPIVersion is used to set client's apiVersion.
func WithKeyspace ¶ added in v2.0.5
WithKeyspace is used to set client's keyspace.
type KVFilter ¶
type KVFilter = transaction.KVFilter
KVFilter is a filter that filters out unnecessary KV pairs.
type KVSnapshot ¶
type KVSnapshot = txnsnapshot.KVSnapshot
KVSnapshot implements the tidbkv.Snapshot interface.
type KVTxn ¶
type KVTxn = transaction.KVTxn
KVTxn contains methods to interact with a TiKV transaction.
type LockResolver ¶
type LockResolver = txnlock.LockResolver
LockResolver resolves locks and also caches resolved txn status.
type ReplicaReadAdjuster ¶ added in v2.0.2
type ReplicaReadAdjuster = txnsnapshot.ReplicaReadAdjuster
ReplicaReadAdjuster is a function that adjust the StoreSelectorOption and ReplicaReadType based on the keys count for BatchPointGet and PointGet
type SchemaLeaseChecker ¶
type SchemaLeaseChecker = transaction.SchemaLeaseChecker
SchemaLeaseChecker is used to validate schema version is not changed during transaction execution.
type SchemaVer ¶
type SchemaVer = transaction.SchemaVer
SchemaVer is the infoSchema which will return the schema version.
type SnapshotRuntimeStats ¶
type SnapshotRuntimeStats = txnsnapshot.SnapshotRuntimeStats
SnapshotRuntimeStats records the runtime stats of snapshot.