Documentation ¶
Index ¶
- type Database
- func (db *Database) Close() error
- func (db *Database) Compact(start []byte, limit []byte) error
- func (db *Database) Delete(key []byte) error
- func (db *Database) Get(key []byte) ([]byte, error)
- func (db *Database) Has(key []byte) (bool, error)
- func (db *Database) HealthCheck(ctx context.Context) (interface{}, 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 []byte, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
CorruptableDB is a wrapper around Database it prevents any future calls in case of a corruption occurs
func (*Database) HealthCheck ¶ added in v1.8.4
func (*Database) NewIterator ¶ added in v1.10.9
func (*Database) NewIteratorWithPrefix ¶ added in v1.10.9
func (*Database) NewIteratorWithStart ¶ added in v1.10.9
func (*Database) NewIteratorWithStartAndPrefix ¶ added in v1.10.9
Click to show internal directories.
Click to hide internal directories.