dbadapter

package
v0.46.33 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	dbm.DB
}

Wrapper type for dbm.Db with implementation of KVStore

func (Store) CacheWrap

func (dsa Store) CacheWrap() types.CacheWrap

CacheWrap branches the underlying store.

func (Store) CacheWrapWithListeners added in v0.46.33

func (dsa Store) CacheWrapWithListeners(storeKey types.StoreKey, listeners []types.WriteListener) types.CacheWrap

CacheWrapWithListeners implements the CacheWrapper interface.

func (Store) CacheWrapWithTrace

func (dsa Store) CacheWrapWithTrace(w io.Writer, tc types.TraceContext) types.CacheWrap

CacheWrapWithTrace implements KVStore.

func (Store) Delete added in v0.46.33

func (dsa Store) Delete(key []byte)

Delete wraps the underlying DB's Delete method panicing on error.

func (Store) Get added in v0.46.33

func (dsa Store) Get(key []byte) []byte

Get wraps the underlying DB's Get method panicing on error.

func (Store) GetStoreType

func (Store) GetStoreType() types.StoreType

GetStoreType returns the type of the store.

func (Store) Has added in v0.46.33

func (dsa Store) Has(key []byte) bool

Has wraps the underlying DB's Has method panicing on error.

func (Store) Iterator added in v0.46.33

func (dsa Store) Iterator(start, end []byte) types.Iterator

Iterator wraps the underlying DB's Iterator method panicing on error.

func (Store) ReverseIterator added in v0.46.33

func (dsa Store) ReverseIterator(start, end []byte) types.Iterator

ReverseIterator wraps the underlying DB's ReverseIterator method panicing on error.

func (Store) Set added in v0.46.33

func (dsa Store) Set(key, value []byte)

Set wraps the underlying DB's Set method panicing on error.

Jump to

Keyboard shortcuts

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