cosmos-sdk: github.com/cosmos/cosmos-sdk/store/prefix Index | Files

package prefix

import "github.com/cosmos/cosmos-sdk/store/prefix"

Index

Package Files

store.go

type Store Uses

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

Store is similar with tendermint/tendermint/libs/db/prefix_db both gives access only to the limited subset of the store for convinience or safety

func NewStore Uses

func NewStore(parent types.KVStore, prefix []byte) Store

func (Store) CacheWrap Uses

func (s Store) CacheWrap() types.CacheWrap

Implements CacheWrap

func (Store) CacheWrapWithTrace Uses

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

CacheWrapWithTrace implements the KVStore interface.

func (Store) Delete Uses

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

Implements KVStore

func (Store) Get Uses

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

Implements KVStore

func (Store) GetStoreType Uses

func (s Store) GetStoreType() types.StoreType

Implements Store

func (Store) Has Uses

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

Implements KVStore

func (Store) Iterator Uses

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

Implements KVStore Check https://github.com/tendermint/tendermint/blob/master/libs/db/prefix_db.go#L106

func (Store) ReverseIterator Uses

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

Implements KVStore Check https://github.com/tendermint/tendermint/blob/master/libs/db/prefix_db.go#L129

func (Store) Set Uses

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

Implements KVStore

Package prefix imports 5 packages (graph) and is imported by 4 packages. Updated 2019-09-18. Refresh now. Tools for package owners.