Versions in this module Expand all Collapse all v0 v0.3.10 Nov 26, 2021 Changes in this version + func IsNotFoundErr(err error) bool + type Batch interface + Replay func(w KeyValueWriter) error + Reset func() + ValueSize func() int + Write func() error + type Batcher interface + NewBatch func() Batch + type Compacter interface + Compact func(start []byte, limit []byte) error + type Database struct + func New(path string, cache int, handles int, readonly bool) (*Database, error) + func NewCustom(path string, customize func(options *opt.Options)) (*Database, error) + func (db *Database) Close() error + func (db *Database) Compact(start []byte, limit []byte) error + func (db *Database) Delete(key []byte) error + func (db *Database) Get(key []byte) ([]byte, error) + func (db *Database) Has(key []byte) (bool, error) + func (db *Database) NewBatch() Batch + func (db *Database) NewIterator(prefix []byte, start []byte) Iterator + func (db *Database) Path() string + func (db *Database) Put(key []byte, value []byte) error + func (db *Database) Stat(property string) (string, error) + type HookedBatch struct + OnDelete func(key []byte) + OnPut func(key []byte, value []byte) + func (b HookedBatch) Delete(key []byte) error + func (b HookedBatch) Put(key []byte, value []byte) error + type Iteratee interface + NewIterator func(prefix []byte, start []byte) Iterator + type Iterator interface + Error func() error + Key func() []byte + Next func() bool + Release func() + Value func() []byte + type KeyValueReader interface + Get func(key []byte) ([]byte, error) + Has func(key []byte) (bool, error) + type KeyValueStore interface + type KeyValueWriter interface + Delete func(key []byte) error + Put func(key []byte, value []byte) error + type Stater interface + Stat func(property string) (string, error) v0.3.9-1 Nov 26, 2021