ethdb2kvdb

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 2 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 {
	ethdb.KeyValueStore
}

func Wrap

func Wrap(v ethdb.KeyValueStore) *Adapter

func (*Adapter) NewBatch

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

NewBatch creates a write-only key-value store that buffers changes to its host database until a final write is called.

func (*Adapter) NewIterator

func (db *Adapter) NewIterator(prefix []byte, start []byte) kvdb.Iterator

NewIterator creates a binary-alphabetical iterator over a subset of database content with a particular key prefix, starting at a particular initial key (or after, if it does not exist).

Jump to

Keyboard shortcuts

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