Versions in this module Expand all Collapse all v0 v0.1.3 Jun 25, 2022 v0.1.0 Jun 25, 2022 Changes in this version + type Database struct + OnClose func() error + OnCompact func([]byte, []byte) error + OnDelete func([]byte) error + OnGet func([]byte) ([]byte, error) + OnHas func([]byte) (bool, error) + OnNewBatch func() database.Batch + OnNewIterator func() database.Iterator + OnNewIteratorWithPrefix func([]byte) database.Iterator + OnNewIteratorWithStart func([]byte) database.Iterator + OnNewIteratorWithStartAndPrefix func([]byte, []byte) database.Iterator + OnPut func([]byte, []byte) error + OnStat func(string) (string, error) + func New() *Database + func (db *Database) Close() error + func (db *Database) Compact(start []byte, limit []byte) error + func (db *Database) Delete(k []byte) error + func (db *Database) Get(k []byte) ([]byte, error) + func (db *Database) Has(k []byte) (bool, error) + func (db *Database) NewBatch() database.Batch + func (db *Database) NewIterator() database.Iterator + func (db *Database) NewIteratorWithPrefix(prefix []byte) database.Iterator + func (db *Database) NewIteratorWithStart(start []byte) database.Iterator + func (db *Database) NewIteratorWithStartAndPrefix(start, prefix []byte) database.Iterator + func (db *Database) Put(k, v []byte) error + func (db *Database) Stat(stat string) (string, error)