Documentation
¶
Overview ¶
Package db adds a layer of abstraction to levelDB LevelDB API available for reference at: https://godoc.org/github.com/syndtr/goleveldb/leveldb Interfaces for LevelDB
Index ¶
- type Batch
- type Database
- type LDB
- func (db *LDB) Close()
- func (db *LDB) Delete(key []byte) error
- func (db *LDB) Get(key []byte) ([]byte, error)
- func (db *LDB) GetDB() *leveldb.DB
- func (db *LDB) Has(key []byte) (bool, error)
- func (db *LDB) Location() string
- func (db *LDB) NewBatch() Batch
- func (db *LDB) NewIterator() iterator.Iterator
- func (db *LDB) Put(key []byte, value []byte) error
- type LDBBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface { Put(key []byte, value []byte) error Has(key []byte) (bool, error) Get(key []byte) ([]byte, error) Delete(key []byte) error Close() NewBatch() Batch }
Database is a wrapper for db ops
Click to show internal directories.
Click to hide internal directories.