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 + type BadgerDBHandle struct + func NewBadgerDBHandle(input *NewBadgerDBOptions) *BadgerDBHandle + func (h *BadgerDBHandle) Close() error + func (h *BadgerDBHandle) CompactRange(start, limit []byte) error + func (h *BadgerDBHandle) Delete(key []byte) error + func (h *BadgerDBHandle) Get(key []byte) ([]byte, error) + func (h *BadgerDBHandle) GetDbType() string + func (h *BadgerDBHandle) GetKeys(keys [][]byte) ([][]byte, error) + func (h *BadgerDBHandle) GetWriteBatchSize() uint64 + func (h *BadgerDBHandle) Has(key []byte) (bool, error) + func (h *BadgerDBHandle) NewIteratorWithPrefix(prefix []byte) (protocol.Iterator, error) + func (h *BadgerDBHandle) NewIteratorWithRange(startKey []byte, limitKey []byte) (protocol.Iterator, error) + func (h *BadgerDBHandle) Put(key []byte, value []byte) error + func (h *BadgerDBHandle) WriteBatch(batch protocol.StoreBatcher, sync bool) error + type BadgerDbConfig struct + Compression uint8 + StorePath string + ValueThreshold int64 + WriteBatchSize uint64 + type Iterator struct + func NewIterator(db *badger.DB, opts badger.IteratorOptions, start []byte, end []byte) *Iterator + 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 NewBadgerDBOptions struct + ChainId string + Config *BadgerDbConfig + DbFolder string + Encryptor crypto.SymmetricKey + Logger protocol.Logger Other modules containing this package chainmaker.org/chainmaker/store-badgerdb/v2