Versions in this module Expand all Collapse all v0 v0.0.1 Aug 24, 2023 Changes in this version + func NewBatch() *batch + type DB struct + func NewDB(path string, batchDelaySeconds int, maxBatchSize int, maxOpenFiles int) (s *DB, err error) + func (bldb DB) RangeKeys(handler func(key []byte, value []byte) bool) + func (s *DB) Close() error + func (s *DB) Destroy() error + func (s *DB) DestroyClosed() error + func (s *DB) Get(key []byte) ([]byte, error) + func (s *DB) Has(key []byte) error + func (s *DB) IsInterfaceNil() bool + func (s *DB) Put(key, val []byte) error + func (s *DB) Remove(key []byte) error + type SerialDB struct + func NewSerialDB(path string, batchDelaySeconds int, maxBatchSize int, maxOpenFiles int) (s *SerialDB, err error) + func (bldb SerialDB) RangeKeys(handler func(key []byte, value []byte) bool) + func (s *SerialDB) Close() error + func (s *SerialDB) Destroy() error + func (s *SerialDB) DestroyClosed() error + func (s *SerialDB) Get(key []byte) ([]byte, error) + func (s *SerialDB) Has(key []byte) error + func (s *SerialDB) IsInterfaceNil() bool + func (s *SerialDB) Put(key, val []byte) error + func (s *SerialDB) Remove(key []byte) error