github.com/KinWaiYuen/client-go/v2@v2.5.4/txnkv/transaction_export.go (about) 1 // Copyright 2021 TiKV Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package txnkv 16 17 import "github.com/KinWaiYuen/client-go/v2/txnkv/transaction" 18 19 // KVTxn contains methods to interact with a TiKV transaction. 20 type KVTxn = transaction.KVTxn 21 22 // BinlogWriteResult defines the result of prewrite binlog. 23 type BinlogWriteResult = transaction.BinlogWriteResult 24 25 // KVFilter is a filter that filters out unnecessary KV pairs. 26 type KVFilter = transaction.KVFilter 27 28 // SchemaLeaseChecker is used to validate schema version is not changed during transaction execution. 29 type SchemaLeaseChecker = transaction.SchemaLeaseChecker 30 31 // SchemaVer is the infoSchema which will return the schema version. 32 type SchemaVer = transaction.SchemaVer 33 34 // SchemaAmender is used by pessimistic transactions to amend commit mutations for schema change during 2pc. 35 type SchemaAmender = transaction.SchemaAmender 36 37 // MaxTxnTimeUse is the max time a Txn may use (in ms) from its begin to commit. 38 // We use it to abort the transaction to guarantee GC worker will not influence it. 39 const MaxTxnTimeUse = transaction.MaxTxnTimeUse