cleveldb

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: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLevelDB

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

CLevelDB uses the C LevelDB database via a Go wrapper.

func NewDB

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

New creates a new CLevelDB.

func (*CLevelDB) Close

func (db *CLevelDB) Close() error

Close implements DB.

func (*CLevelDB) DB

func (db *CLevelDB) DB() *levigo.DB

FIXME This should not be exposed

func (*CLevelDB) Delete

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

Delete implements DB.

func (*CLevelDB) DeleteSync

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

DeleteSync implements DB.

func (*CLevelDB) Get

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

Get implements DB.

func (*CLevelDB) Has

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

Has implements DB.

func (*CLevelDB) Iterator

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

Iterator implements DB.

func (*CLevelDB) NewBatch

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

NewBatch implements DB.

func (*CLevelDB) Print

func (db *CLevelDB) Print() error

Print implements DB.

func (*CLevelDB) ReverseIterator

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

ReverseIterator implements DB.

func (*CLevelDB) Set

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

Set implements DB.

func (*CLevelDB) SetSync

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

SetSync implements DB.

func (*CLevelDB) Stats

func (db *CLevelDB) 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