Documentation ¶
Index ¶
- type DB
- func (d *DB) Close() error
- func (d *DB) Delete(key []byte) error
- func (d *DB) Get(key []byte) ([]byte, error)
- func (d *DB) NewIterator(slice *util.Range, ro *opt.ReadOptions) iterator.Iterator
- func (d *DB) Put(key, value []byte) error
- func (d *DB) Write(batch *leveldb.Batch, wo *opt.WriteOptions) error
- type DBPutGetDeleter
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) NewIterator ¶
NewIterator creates a new database iterator.
type DBPutGetDeleter ¶ added in v1.1.29
type DBPutGetDeleter interface { Get(key []byte, ro *opt.ReadOptions) (value []byte, err error) Put(key, value []byte, wo *opt.WriteOptions) error Close() error Write(batch *leveldb.Batch, wo *opt.WriteOptions) error NewIterator(slice *util.Range, ro *opt.ReadOptions) iterator.Iterator Delete(key []byte, wo *opt.WriteOptions) error }
DBPutGetDeleter represents a database engine.
type Database ¶
type Database interface { Put(key, value []byte) error Get(key []byte) ([]byte, error) Close() error Write(batch *leveldb.Batch, wo *opt.WriteOptions) error NewIterator(slice *util.Range, ro *opt.ReadOptions) iterator.Iterator Delete(key []byte) error }
Database represents the database functionalities.
Click to show internal directories.
Click to hide internal directories.