github.com/KinWaiYuen/client-go/v2@v2.5.4/txnkv/snapshot_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 (
    18  	"github.com/KinWaiYuen/client-go/v2/txnkv/txnsnapshot"
    19  )
    20  
    21  // Scanner support tikv scan
    22  type Scanner = txnsnapshot.Scanner
    23  
    24  // KVSnapshot implements the tidbkv.Snapshot interface.
    25  type KVSnapshot = txnsnapshot.KVSnapshot
    26  
    27  // SnapshotRuntimeStats records the runtime stats of snapshot.
    28  type SnapshotRuntimeStats = txnsnapshot.SnapshotRuntimeStats
    29  
    30  // IsoLevel is the transaction's isolation level.
    31  type IsoLevel = txnsnapshot.IsoLevel
    32  
    33  // IsoLevel value for transaction priority.
    34  const (
    35  	SI = txnsnapshot.SI
    36  	RC = txnsnapshot.RC
    37  )