Versions in this module Expand all Collapse all v3 v3.0.1 Dec 26, 2023 v3.0.0 Dec 23, 2022 Changes in this version + const PrefixSeparator + const StoreBlockDBDir + const StoreHistoryDBDir + const StoreResultDBDir + const StoreStateDBDir + type Iterator struct + func NewIterator(db *rawkv.Client, start []byte, end []byte, limit int, batchSize int, ...) (*Iterator, error) + func (iter *Iterator) Error() error + func (iter *Iterator) First() bool + func (iter *Iterator) Key() []byte + func (iter *Iterator) Next() bool + func (iter *Iterator) Release() + func (iter *Iterator) Value() []byte + type NewTikvDBOptions struct + ChainId string + Config *TiKVDbConfig + DbName string + Encryptor crypto.SymmetricKey + Logger protocol.Logger + type TiKVDBHandle struct + func NewTiKVDBHandle(input *NewTikvDBOptions) *TiKVDBHandle + func (h *TiKVDBHandle) Close() error + func (h *TiKVDBHandle) CompactRange(_, _ []byte) error + func (h *TiKVDBHandle) Delete(key []byte) error + func (h *TiKVDBHandle) Get(key []byte) ([]byte, error) + func (h *TiKVDBHandle) GetDbType() string + func (h *TiKVDBHandle) GetKeys(keys [][]byte) ([][]byte, error) + func (h *TiKVDBHandle) GetWriteBatchSize() uint64 + func (h *TiKVDBHandle) Has(key []byte) (bool, error) + func (h *TiKVDBHandle) NewIteratorWithPrefix(prefix []byte) (protocol.Iterator, error) + func (h *TiKVDBHandle) NewIteratorWithRange(startKey []byte, limitKey []byte) (protocol.Iterator, error) + func (h *TiKVDBHandle) Put(key []byte, value []byte) error + func (h *TiKVDBHandle) WriteBatch(batch protocol.StoreBatcher, _ bool) error + type TiKVDbConfig struct + DbPrefix string + Endpoints string + GrpcConnectionCount uint + GrpcKeepAliveTime uint + GrpcKeepAliveTimeout uint + MaxBatchCount uint + MaxScanLimit uint64 + ScanBatchSize uint64 + WriteBatchSize uint64 Other modules containing this package chainmaker.org/chainmaker/store-tikv/v2