Versions in this module Expand all Collapse all v0 v0.1.0 Apr 19, 2020 Changes in this version + var ErrClosed = errors.New("closed") + var ErrNotFound = errors.New("not found") + var Tests = []func(t *testing.T, db Database) + func TestBatchDelete(t *testing.T, db Database) + func TestBatchInner(t *testing.T, db Database) + func TestBatchPut(t *testing.T, db Database) + func TestBatchReplay(t *testing.T, db Database) + func TestBatchReset(t *testing.T, db Database) + func TestBatchReuse(t *testing.T, db Database) + func TestBatchRewrite(t *testing.T, db Database) + func TestCompactNoPanic(t *testing.T, db Database) + func TestIterator(t *testing.T, db Database) + func TestIteratorClosed(t *testing.T, db Database) + func TestIteratorPrefix(t *testing.T, db Database) + func TestIteratorStart(t *testing.T, db Database) + func TestIteratorStartPrefix(t *testing.T, db Database) + func TestSimpleKeyValue(t *testing.T, db Database) + func TestSimpleKeyValueClosed(t *testing.T, db Database) + func TestStatNoPanic(t *testing.T, db Database) + type Batch interface + Inner func() Batch + 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 interface + type Iteratee interface + NewIterator func() Iterator + NewIteratorWithPrefix func(prefix []byte) Iterator + NewIteratorWithStart func(start []byte) Iterator + NewIteratorWithStartAndPrefix func(start, prefix []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 KeyValueWriter interface + Delete func(key []byte) error + Put func(key []byte, value []byte) error + type Stater interface + Stat func(property string) (string, error)