snap2kvdb

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	kvdb.Snapshot
}

func Wrap

func Wrap(v kvdb.Snapshot) *Adapter

func (*Adapter) Close

func (db *Adapter) Close() error

func (*Adapter) Compact

func (db *Adapter) Compact(start []byte, limit []byte) error

func (*Adapter) Delete

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

func (*Adapter) GetSnapshot

func (db *Adapter) GetSnapshot() (kvdb.Snapshot, error)

func (*Adapter) NewBatch

func (db *Adapter) NewBatch() kvdb.Batch

func (*Adapter) Put

func (db *Adapter) Put(key []byte, value []byte) error

func (*Adapter) Stat

func (db *Adapter) Stat(property string) (string, error)

Jump to

Keyboard shortcuts

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