Module tikv_client_proto::kvrpcpb[][src]

Structs

AlreadyExist
BatchGetRequest

Similar to a Get request.

BatchGetResponse
BatchRollbackRequest

Rollback a prewritten transaction. This will remove the preliminary data from the database, unlock locks, and leave a rollback tombstone.

BatchRollbackResponse
CheckLeaderRequest
CheckLeaderResponse
CheckLockObserverRequest
CheckLockObserverResponse
CheckSecondaryLocksRequest

Part of the async commit protocol, checks for locks on all supplied keys. If a lock is missing, does not have a successful status, or belongs to another transaction, TiKV will leave a rollback tombstone for that key.

CheckSecondaryLocksResponse
CheckTxnStatusRequest

CheckTxnStatusRequest checks the status of a transaction. If the transaction is rollbacked/committed, return that result. If the TTL of the transaction is exhausted, abort that transaction and inform the caller. Otherwise, returns the TTL information for the transaction. CheckTxnStatusRequest may also push forward the minCommitTS of a large transaction.

CheckTxnStatusResponse
CleanupRequest

Cleanup a key by possibly unlocking it. From 4.0 onwards, this message is no longer used.

CleanupResponse
CommitRequest

The second phase of writing to TiKV. If there are no errors or conflicts, then this request commits a transaction so that its data can be read by other transactions.

CommitResponse
CommitTsExpired
CommitTsTooLarge
Context

Miscellaneous metadata attached to most requests.

Deadlock
DeleteRangeRequest

Delete a range of data from TiKV. This message should not be used.

DeleteRangeResponse
ExecDetails
ExecDetailsV2
GcRequest

Request TiKV to garbage collect all non-current data older than safe_point.

GcResponse
GetRequest

A transactional get command. Lookup a value for key in the transaction with starting timestamp = version.

GetResponse
ImportRequest

Not yet implemented.

ImportResponse
KeyError
KeyRange
KvPair
LeaderInfo
LockInfo
Mutation
MvccGetByKeyRequest
MvccGetByKeyResponse
MvccGetByStartTsRequest
MvccGetByStartTsResponse
MvccInfo
MvccLock
MvccValue
MvccWrite
PessimisticLockRequest

Lock a set of keys to prepare to write to them.

PessimisticLockResponse
PessimisticRollbackRequest

Unlock keys locked using PessimisticLockRequest.

PessimisticRollbackResponse
PhysicalScanLockRequest
PhysicalScanLockResponse
PrewriteRequest

A prewrite is the first phase of writing to TiKV. It contains all data to be written in a transaction. TiKV will write the data in a preliminary state. Data cannot be read until it has been committed. The client should only commit a transaction once all prewrites succeed.

PrewriteResponse
RawBatchDeleteRequest
RawBatchDeleteResponse
RawBatchGetRequest
RawBatchGetResponse
RawBatchPutRequest
RawBatchPutResponse
RawBatchScanRequest
RawBatchScanResponse
RawCasRequest
RawCasResponse
RawDeleteRangeRequest
RawDeleteRangeResponse
RawDeleteRequest
RawDeleteResponse
RawGetKeyTtlRequest
RawGetKeyTtlResponse
RawGetRequest
RawGetResponse
RawPutRequest
RawPutResponse
RawScanRequest
RawScanResponse
ReadIndexRequest

Sent from TiFlash to a TiKV node.

ReadIndexResponse
RegisterLockObserverRequest
RegisterLockObserverResponse
RemoveLockObserverRequest
RemoveLockObserverResponse
ResolveLockRequest

For all keys locked by the transaction identified by start_version, either commit or rollback the transaction and unlock the key.

ResolveLockResponse
ScanDetail

Only reserved for compatibility.

ScanDetailV2
ScanInfo
ScanLockRequest

Scan the database for locks. Used at the start of the GC process to find all old locks.

ScanLockResponse
ScanRequest

Scan fetches values for a range of keys; it is part of the transaction with starting timestamp = version.

ScanResponse
SplitRegionRequest

Sent from PD to a TiKV node.

SplitRegionResponse
StoreSafeTsRequest
StoreSafeTsResponse
TimeDetail
TxnHeartBeatRequest

Used to update the lock_ttl of a psessimistic and/or large transaction to prevent it from been killed.

TxnHeartBeatResponse
TxnInfo
TxnNotFound
UnsafeDestroyRangeRequest
UnsafeDestroyRangeResponse
VerBatchGetRequest
VerBatchGetResponse
VerBatchMutRequest
VerBatchMutResponse
VerDeleteRangeRequest
VerDeleteRangeResponse
VerError
VerGetRequest
VerGetResponse
VerKvPair
VerMutRequest
VerMutResponse
VerMutation
VerScanRequest
VerScanResponse
VerValue
WriteConflict

Enums

Action
Assertion
CommandPri
ExtraOp
IsolationLevel
Op
VerOp