Versions in this module Expand all Collapse all v1 v1.101106.1 Jul 13, 2023 Changes in this version + const IdealBatchSize + type AncientReader interface + ReadAncients func(fn func(AncientReaderOp) error) (err error) + type AncientReaderOp interface + Ancient func(kind string, number uint64) ([]byte, error) + AncientRange func(kind string, start, count, maxBytes uint64) ([][]byte, error) + AncientSize func(kind string) (uint64, error) + Ancients func() (uint64, error) + HasAncient func(kind string, number uint64) (bool, error) + Tail func() (uint64, error) + type AncientStater interface + AncientDatadir func() (string, error) + type AncientStore interface + type AncientWriteOp interface + Append func(kind string, number uint64, item interface{}) error + AppendRaw func(kind string, number uint64, item []byte) error + type AncientWriter interface + MigrateTable func(string, func([]byte) ([]byte, error)) error + ModifyAncients func(func(AncientWriteOp) error) (int64, error) + Sync func() error + TruncateHead func(n uint64) error + TruncateTail func(n uint64) error + type Batch interface + Replay func(w KeyValueWriter) error + Reset func() + ValueSize func() int + Write func() error + type Batcher interface + NewBatch func() Batch + NewBatchWithSize func(size int) Batch + type Compacter interface + Compact func(start []byte, limit []byte) error + type Database interface + 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 KeyValueStater interface + Stat func(property string) (string, error) + type KeyValueStore interface + type KeyValueWriter interface + Delete func(key []byte) error + Put func(key []byte, value []byte) error + type Reader interface + type Snapshot interface + Get func(key []byte) ([]byte, error) + Has func(key []byte) (bool, error) + Release func() + type Snapshotter interface + NewSnapshot func() (Snapshot, error) + type Stater interface + type Writer interface