wrapper

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBWrapper

type DBWrapper struct {
	dbm.DB
}

DBwrapper is a simple wrapper of dbm.DB that implements the iavl.DB interface.

func NewDBWrapper

func NewDBWrapper(db dbm.DB) *DBWrapper

NewDBWrapper creates a new DBWrapper instance.

func (*DBWrapper) Iterator

func (dbw *DBWrapper) Iterator(start, end []byte) (idb.Iterator, error)

func (*DBWrapper) NewBatch

func (dbw *DBWrapper) NewBatch() idb.Batch

func (*DBWrapper) NewBatchWithSize

func (dbw *DBWrapper) NewBatchWithSize(size int) idb.Batch

func (*DBWrapper) ReverseIterator

func (dbw *DBWrapper) ReverseIterator(start, end []byte) (idb.Iterator, error)

Jump to

Keyboard shortcuts

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