Documentation ¶
Index ¶
- type Store
- func (st *Store) CacheWrap() types.CacheWrap
- func (st *Store) CacheWrapWithTrace(w io.Writer, tc types.TraceContext) types.CacheWrap
- func (st *Store) Commit() types.CommitID
- func (st *Store) Delete(key []byte)
- func (st *Store) Get(key []byte) []byte
- func (st *Store) GetPruning() pruningtypes.PruningOptions
- func (st *Store) GetStoreType() types.StoreType
- func (st *Store) Has(key []byte) bool
- func (st *Store) Iterator(start, end []byte) types.Iterator
- func (st *Store) LastCommitID() types.CommitID
- func (st *Store) PopChangeSet() iavl.ChangeSet
- func (st *Store) Query(req abci.RequestQuery) (res abci.ResponseQuery)
- func (st *Store) ReverseIterator(start, end []byte) types.Iterator
- func (st *Store) Set(key, value []byte)
- func (st *Store) SetInitialVersion(version int64)
- func (st *Store) SetPruning(_ pruningtypes.PruningOptions)
- func (st *Store) SetTree(tree *memiavl.Tree)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store Implements types.KVStore and CommitKVStore.
func (*Store) CacheWrapWithTrace ¶
CacheWrapWithTrace implements the Store interface.
func (*Store) Delete ¶
Implements types.KVStore.
we assume Delete is only called in `Commit`, so the written state is only visible after commit.
func (*Store) GetPruning ¶
func (st *Store) GetPruning() pruningtypes.PruningOptions
SetPruning panics as pruning options should be provided at initialization since IAVl accepts pruning options directly.
func (*Store) LastCommitID ¶
func (*Store) PopChangeSet ¶
PopChangeSet returns the change set and clear it
func (*Store) Query ¶
func (st *Store) Query(req abci.RequestQuery) (res abci.ResponseQuery)
func (*Store) Set ¶
Implements types.KVStore.
we assume Set is only called in `Commit`, so the written state is only visible after commit.
func (*Store) SetInitialVersion ¶
SetInitialVersion sets the initial version of the IAVL tree. It is used when starting a new chain at an arbitrary height. implements interface StoreWithInitialVersion
func (*Store) SetPruning ¶
func (st *Store) SetPruning(_ pruningtypes.PruningOptions)
SetPruning panics as pruning options should be provided at initialization since IAVl accepts pruning options directly.