pebble

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PebbleEngine

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

func Open

func Open(path string, conf config.Config) (_ *PebbleEngine, err error)

TODO: Allow Passing Pebble Options

func (*PebbleEngine) Begin added in v0.2.2

func (db *PebbleEngine) Begin(readonly bool) (engine.Transaction, error)

func (*PebbleEngine) Close

func (db *PebbleEngine) Close() error

Close the database.

func (*PebbleEngine) Delete added in v0.2.2

func (db *PebbleEngine) Delete(key []byte, options ...opts.Option) error

Delete the object represented by the key, creating a tombstone object.

func (*PebbleEngine) Engine

func (db *PebbleEngine) Engine() string

Returns a string giving the engine type.

func (*PebbleEngine) Get added in v0.2.2

func (db *PebbleEngine) Get(key []byte, options ...opts.Option) (value []byte, err error)

Get the latest version of the object stored by the key.

func (*PebbleEngine) Iter added in v0.2.2

func (db *PebbleEngine) Iter(prefix []byte) (i iterator.Iterator, err error)

TODO: Implement pebble iteration (engines/pebble/iter.go)

func (*PebbleEngine) Put added in v0.2.2

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

Put a new value to the specified key and update the version.

Jump to

Keyboard shortcuts

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