Versions in this module Expand all Collapse all v0 v0.1.0 Feb 24, 2018 Changes in this version + type DB struct + func CreateNewDB(levelDbPath string) *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 struct + 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 struct + func CreateNewDBProvider(levelDbPath string) *DBProvider + func (p *DBProvider) Close() + func (p *DBProvider) GetDBHandle(dbName string) *DBHandle