leveldb

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Type = "leveldb"
)

Variables

This section is empty.

Functions

func Create

func Create(path string, m graph.Options) (kv.BucketKV, error)

func Open

func Open(path string, m graph.Options) (kv.BucketKV, error)

Types

type DB

type DB struct {
	DB *leveldb.DB
	// contains filtered or unexported fields
}

func (*DB) Close

func (db *DB) Close() error

func (*DB) Tx

func (db *DB) Tx(update bool) (kv.FlatTx, error)

func (*DB) Type

func (db *DB) Type() string

type Iterator

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

func (*Iterator) Close

func (it *Iterator) Close() error

func (*Iterator) Err

func (it *Iterator) Err() error

func (*Iterator) Key

func (it *Iterator) Key() []byte

func (*Iterator) Next

func (it *Iterator) Next(ctx context.Context) bool

func (*Iterator) Val

func (it *Iterator) Val() []byte

type Tx

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

func (*Tx) Commit

func (tx *Tx) Commit(ctx context.Context) error

func (*Tx) Del

func (tx *Tx) Del(k []byte) error

func (*Tx) Get

func (tx *Tx) Get(ctx context.Context, keys [][]byte) ([][]byte, error)

func (*Tx) Put

func (tx *Tx) Put(k, v []byte) error

func (*Tx) Rollback

func (tx *Tx) Rollback() error

func (*Tx) Scan

func (tx *Tx) Scan(pref []byte) kv.KVIterator

Jump to

Keyboard shortcuts

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