uleveldb

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ULevelDB

type ULevelDB struct {
	DB *leveldb.DB
}

ULevelDB level db store key-struct

func OpenDb

func OpenDb(path string) (*ULevelDB, error)

OpenDb open a db client

func (*ULevelDB) Close

func (l *ULevelDB) Close() error

Close db close

func (*ULevelDB) Delete

func (l *ULevelDB) Delete(key string) error

Delete * @param {string} key * @param {interface{}} value

func (*ULevelDB) Get

func (l *ULevelDB) Get(key string, value interface{}) error

Get * @param {string} key * @param {interface{}} value

func (*ULevelDB) NewIterator

func (l *ULevelDB) NewIterator(slice *util.Range, ro *opt.ReadOptions) iterator.Iterator

NewIterator /**

func (*ULevelDB) Put

func (l *ULevelDB) Put(key string, value interface{}) error

Put * @param {string} key * @param {interface{}} value

func (*ULevelDB) ReadAllChan

func (l *ULevelDB) ReadAllChan(ctx context.Context, prefix string, seekKey string) (<-chan *entry, error)

ReadAllChan read all key value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL