rangedb

package
Version: v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextKey

func NextKey(bkey []byte) []byte

NextKey returns the next key for lexigraphical (key = NextKey(lastkey))

Types

type Range

type Range struct {
	Reverse  bool
	Min, Max []byte
	// contains filtered or unexported fields
}

func (*Range) Close

func (r *Range) Close() error

func (*Range) Next

func (r *Range) Next() ([]byte, []byte, error)

func (*Range) Seek

func (r *Range) Seek(k []byte) ([]byte, []byte, error)

type RangeDB

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

func New

func New(path string) (*RangeDB, error)

New creates a new database.

func (*RangeDB) Close

func (db *RangeDB) Close() error

func (*RangeDB) Delete

func (db *RangeDB) Delete(k []byte) error

func (*RangeDB) Destroy

func (db *RangeDB) Destroy() error

func (*RangeDB) Get

func (db *RangeDB) Get(k []byte) ([]byte, error)

func (*RangeDB) Has

func (db *RangeDB) Has(k []byte) (bool, error)

func (*RangeDB) PrefixRange

func (db *RangeDB) PrefixRange(prefix []byte, reverse bool) *Range

func (*RangeDB) Range

func (db *RangeDB) Range(min, max []byte, reverse bool) *Range

func (*RangeDB) Set

func (db *RangeDB) Set(k, v []byte) error

Source Files

Jump to

Keyboard shortcuts

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