Documentation ¶
Index ¶
- func Open(options map[string]interface{}) (kvdb.Database, error)
- type Database
- func (db *Database) Close() 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) NewBatch() kvdb.Batch
- func (db *Database) NewIterator(prefix []byte, start []byte) kvdb.Iterator
- func (db *Database) Put(key []byte, value []byte) error
- func (db *Database) Stat(property string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database is an ephemeral key-value store. Apart from basic data storage functionality it also supports batch writes and iterating over the keyspace in binary-alphabetical order.
func (*Database) NewIterator ¶
Click to show internal directories.
Click to hide internal directories.