import "github.com/cosmos/cosmos-sdk/store/tracekv"
type Store struct {
// contains filtered or unexported fields
}
Store implements the KVStore interface with tracing enabled. Operations are traced on each core KVStore call and written to the underlying io.writer.
TODO: Should we use a buffered writer and implement Commit on Store?
NewStore returns a reference to a new traceKVStore given a parent KVStore implementation and a buffered writer.
CacheWrap implements the KVStore interface. It panics because a Store cannot be branched.
CacheWrapWithTrace implements the KVStore interface. It panics as a Store cannot be branched.
Delete implements the KVStore interface. It traces a write operation and delegates the Delete call to the parent KVStore.
Get implements the KVStore interface. It traces a read operation and delegates a Get call to the parent KVStore.
GetStoreType implements the KVStore interface. It returns the underlying KVStore type.
Has implements the KVStore interface. It delegates the Has call to the parent KVStore.
Iterator implements the KVStore interface. It delegates the Iterator call the to the parent KVStore.
ReverseIterator implements the KVStore interface. It delegates the ReverseIterator call the to the parent KVStore.
Set implements the KVStore interface. It traces a write operation and delegates the Set call to the parent KVStore.
Package tracekv imports 5 packages (graph) and is imported by 22 packages. Updated 2021-01-08. Refresh now. Tools for package owners.