Documentation ¶
Index ¶
- type Conf
- type DB
- func (dbInst *DB) Close()
- func (dbInst *DB) Delete(key []byte, sync bool) error
- func (dbInst *DB) Get(key []byte) ([]byte, error)
- func (dbInst *DB) GetIterator(startKey []byte, endKey []byte) iterator.Iterator
- func (dbInst *DB) Open()
- func (dbInst *DB) Put(key []byte, value []byte, sync bool) error
- func (dbInst *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) GetIterator(startKey []byte, endKey []byte) *Iterator
- func (h *DBHandle) Put(key []byte, value []byte, sync bool) error
- func (h *DBHandle) WriteBatch(batch *UpdateBatch, sync bool) error
- type Iterator
- type Provider
- type UpdateBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBHandle ¶
type DBHandle struct {
// contains filtered or unexported fields
}
func (*DBHandle) GetIterator ¶
nil startkey表示第一个可用键,nil endkey表示最后一个可用键之后的逻辑键。
func (*DBHandle) WriteBatch ¶
func (h *DBHandle) WriteBatch(batch *UpdateBatch, sync bool) error
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) GetDBHandle ¶
type UpdateBatch ¶
func NewUpdateBatch ¶
func NewUpdateBatch() *UpdateBatch
func (*UpdateBatch) Delete ¶
func (batch *UpdateBatch) Delete(key []byte)
func (*UpdateBatch) Len ¶
func (batch *UpdateBatch) Len() int
Click to show internal directories.
Click to hide internal directories.