leveldb

package
v0.0.0-...-3976360 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func Open

func Open(dbname string, opts *options.Options) (db *DB, err error)

func (*DB) All

func (db *DB) All(opts *options.ReadOptions) iterator.Iterator

func (*DB) Close

func (db *DB) Close() error

func (*DB) CompactRange

func (db *DB) CompactRange(start, limit []byte) error

func (*DB) Delete

func (db *DB) Delete(key []byte, opts *options.WriteOptions) error

func (*DB) Find

func (db *DB) Find(start []byte, opts *options.ReadOptions) iterator.Iterator

func (*DB) Get

func (db *DB) Get(key []byte, opts *options.ReadOptions) ([]byte, error)

func (*DB) NewSnapshot

func (db *DB) NewSnapshot() *Snapshot

func (*DB) Prefix

func (db *DB) Prefix(prefix []byte, opts *options.ReadOptions) iterator.Iterator

func (*DB) Put

func (db *DB) Put(key, value []byte, opts *options.WriteOptions) error

func (*DB) Range

func (db *DB) Range(start, limit []byte, opts *options.ReadOptions) iterator.Iterator

func (*DB) Write

func (db *DB) Write(b batch.Batch, opts *options.WriteOptions) error

type Snapshot

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

func (*Snapshot) All

func (ss *Snapshot) All(opts *options.ReadOptions) iterator.Iterator

func (*Snapshot) Find

func (ss *Snapshot) Find(start []byte, opts *options.ReadOptions) iterator.Iterator

func (*Snapshot) Get

func (ss *Snapshot) Get(key []byte, opts *options.ReadOptions) ([]byte, error)

func (*Snapshot) Prefix

func (ss *Snapshot) Prefix(prefix []byte, opts *options.ReadOptions) iterator.Iterator

func (*Snapshot) Range

func (ss *Snapshot) Range(start, limit []byte, opts *options.ReadOptions) iterator.Iterator

func (*Snapshot) Release

func (ss *Snapshot) Release()

func (*Snapshot) Retain

func (ss *Snapshot) Retain()

Jump to

Keyboard shortcuts

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