goleveldb

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoLevelDB

type GoLevelDB struct {
	// contains filtered or unexported fields
}

func NewDB

func NewDB(name string, dir string) (*GoLevelDB, error)

func NewDBWithOpts

func NewDBWithOpts(name string, dir string, o *opt.Options) (*GoLevelDB, error)

func (*GoLevelDB) Close

func (db *GoLevelDB) Close() error

Close implements DB.

func (*GoLevelDB) DB

func (db *GoLevelDB) DB() *leveldb.DB

func (*GoLevelDB) Delete

func (db *GoLevelDB) Delete(key []byte) error

Delete implements DB.

func (*GoLevelDB) DeleteSync

func (db *GoLevelDB) DeleteSync(key []byte) error

DeleteSync implements DB.

func (*GoLevelDB) Get

func (db *GoLevelDB) Get(key []byte) ([]byte, error)

Get implements DB.

func (*GoLevelDB) Has

func (db *GoLevelDB) Has(key []byte) (bool, error)

Has implements DB.

func (*GoLevelDB) Iterator

func (db *GoLevelDB) Iterator(start, end []byte) (tmdb.Iterator, error)

Iterator implements DB.

func (*GoLevelDB) NewBatch

func (db *GoLevelDB) NewBatch() tmdb.Batch

NewBatch implements DB.

func (*GoLevelDB) Print

func (db *GoLevelDB) Print() error

Print implements DB.

func (*GoLevelDB) ReverseIterator

func (db *GoLevelDB) ReverseIterator(start, end []byte) (tmdb.Iterator, error)

ReverseIterator implements DB.

func (*GoLevelDB) Set

func (db *GoLevelDB) Set(key []byte, value []byte) error

Set implements DB.

func (*GoLevelDB) SetSync

func (db *GoLevelDB) SetSync(key []byte, value []byte) error

SetSync implements DB.

func (*GoLevelDB) Stats

func (db *GoLevelDB) Stats() map[string]string

Stats implements DB.

Jump to

Keyboard shortcuts

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