Documentation ¶
Index ¶
- type DB
- func (db *DB) Close()
- func (db *DB) Delete(key []byte, sync bool) error
- func (db *DB) Get(key []byte) ([]byte, error)
- func (db *DB) GetIterator(startKey []byte, endKey []byte) iterator.Iterator
- func (db *DB) GetIteratorWithPrefix(prefix []byte) iterator.Iterator
- func (db *DB) Open()
- func (db *DB) Put(key []byte, value []byte, sync bool) error
- func (db *DB) Snapshot() (map[string][]byte, error)
- func (db *DB) WriteBatch(batch *leveldb.Batch, sync bool) error
- type DBHandle
- func (h *DBHandle) Delete(key []byte, sync bool) error
- func (h *DBHandle) Get(key []byte) ([]byte, error)
- func (h *DBHandle) GetIteratorWithPrefix() iterator.Iterator
- func (h *DBHandle) Put(key []byte, value []byte, sync bool) error
- func (h *DBHandle) Snapshot() (map[string][]byte, error)
- func (h *DBHandle) WriteBatch(KVs map[string][]byte, sync bool) error
- type DBProvider
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) GetIterator ¶
func (*DB) GetIteratorWithPrefix ¶
type DBHandle ¶
type DBHandle struct {
// contains filtered or unexported fields
}
func (*DBHandle) GetIteratorWithPrefix ¶
type DBProvider ¶
type DBProvider struct {
// contains filtered or unexported fields
}
func CreateNewDBProvider ¶
func CreateNewDBProvider(levelDbPath string) *DBProvider
func (*DBProvider) Close ¶
func (p *DBProvider) Close()
func (*DBProvider) GetDBHandle ¶
func (p *DBProvider) GetDBHandle(dbName string) *DBHandle
Click to show internal directories.
Click to hide internal directories.