Versions in this module Expand all Collapse all v1 v1.0.2 Jun 10, 2023 Changes in this version + type DB struct + func NewDB(options config.Options) (*DB, error) + func (db *DB) Close() error + func (db *DB) Delete(key []byte) error + func (db *DB) Fold(f func(key []byte, value []byte) bool) error + func (db *DB) Get(key []byte) ([]byte, error) + func (db *DB) GetListKeys() [][]byte + func (db *DB) Merge() error + func (db *DB) NewIterator(opt config.IteratorOptions) *Iterator + func (db *DB) NewWriteBatch(opt config.WriteBatchOptions) *WriteBatch + func (db *DB) Put(key []byte, value []byte) error + func (db *DB) Sync() error + type Iterator struct + func (it *Iterator) Close() + func (it *Iterator) Key() []byte + func (it *Iterator) Next() + func (it *Iterator) Rewind() + func (it *Iterator) Seek(key []byte) + func (it *Iterator) Valid() bool + func (it *Iterator) Value() ([]byte, error) + type WriteBatch struct + func (wb *WriteBatch) Commit() error + func (wb *WriteBatch) Delete(key []byte) error + func (wb *WriteBatch) Put(key []byte, value []byte) error