Documentation ¶
Index ¶
- type DB
- func (_m *DB) Begin()
- func (_m *DB) BeginTx() (db.TxKV, error)
- func (_m *DB) Close()
- func (_m *DB) Commit() error
- func (_m *DB) CompactRange(start []byte, limit []byte) error
- func (_m *DB) Delete(_a0 []byte) error
- func (_m *DB) DeleteSync(_a0 []byte) error
- func (_m *DB) Get(key []byte) ([]byte, error)
- func (_m *DB) GetCache() *lru.ARCCache
- func (_m *DB) Iterator(start []byte, end []byte, reserver bool) db.Iterator
- func (_m *DB) NewBatch(sync bool) db.Batch
- func (_m *DB) Print()
- func (_m *DB) Rollback()
- func (_m *DB) Set(key []byte, value []byte) error
- func (_m *DB) SetCacheSize(size int)
- func (_m *DB) SetSync(_a0 []byte, _a1 []byte) error
- func (_m *DB) Stats() map[string]string
- type KV
- type KVDB
- func (_m *KVDB) Begin()
- func (_m *KVDB) Commit() error
- func (_m *KVDB) Get(key []byte) ([]byte, error)
- func (_m *KVDB) List(prefix []byte, key []byte, count int32, direction int32) ([][]byte, error)
- func (_m *KVDB) PrefixCount(prefix []byte) int64
- func (_m *KVDB) Rollback()
- func (_m *KVDB) Set(key []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶ added in v1.65.0
DB is an autogenerated mock type for the DB type
func (*DB) Begin ¶ added in v1.65.0
func (_m *DB) Begin()
Begin provides a mock function with given fields:
func (*DB) Close ¶ added in v1.65.0
func (_m *DB) Close()
Close provides a mock function with given fields:
func (*DB) CompactRange ¶ added in v1.65.0
CompactRange provides a mock function with given fields: start, limit
func (*DB) DeleteSync ¶ added in v1.65.0
DeleteSync provides a mock function with given fields: _a0
func (*DB) Iterator ¶ added in v1.65.0
Iterator provides a mock function with given fields: start, end, reserver
func (*DB) Print ¶ added in v1.65.0
func (_m *DB) Print()
Print provides a mock function with given fields:
func (*DB) Rollback ¶ added in v1.65.0
func (_m *DB) Rollback()
Rollback provides a mock function with given fields:
func (*DB) SetCacheSize ¶ added in v1.65.0
SetCacheSize provides a mock function with given fields: size
type KV ¶
KV is an autogenerated mock type for the KV type
type KVDB ¶
KVDB is an autogenerated mock type for the KVDB type
func (*KVDB) PrefixCount ¶
PrefixCount provides a mock function with given fields: prefix