Versions in this module Expand all Collapse all v1 v1.4.9 Jul 5, 2021 v1.4.5 Jul 5, 2021 Changes in this version + type Database struct + func New(db database.Database) *Database + func (db *Database) AbortCommit() + func (db *Database) Close() error + func (db *Database) Commit() error + func (db *Database) CommitBatch() (database.Batch, error) + func (db *Database) Compact(start, limit []byte) error + func (db *Database) Delete(key []byte) error + func (db *Database) EndBatch() + func (db *Database) Get(key []byte) ([]byte, error) + func (db *Database) Has(key []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(key, value []byte) error + func (db *Database) StartCommit() + func (db *Database) Stat(stat string) (string, error)