transient

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0, Apache-2.0 Imports: 4 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 {
	dbadapter.Store
}

Store is a wrapper for a MemDB with Commiter implementation

func NewStore

func NewStore() *Store

Constructs new MemDB adapter

func (*Store) Commit

func (ts *Store) Commit(*iavl.TreeDelta, []byte) (id types.CommitID, _ iavl.TreeDelta, _ []byte)

Implements CommitStore Commit cleans up Store.

func (*Store) CommitterCommit

func (ts *Store) CommitterCommit(interface{}) (id types.CommitID, _ interface{})

func (*Store) GetDBReadCount

func (ts *Store) GetDBReadCount() int

func (*Store) GetDBReadTime

func (ts *Store) GetDBReadTime() int

func (*Store) GetDBWriteCount

func (ts *Store) GetDBWriteCount() int

func (*Store) GetFlatKVReadCount

func (ts *Store) GetFlatKVReadCount() int

func (*Store) GetFlatKVReadTime

func (ts *Store) GetFlatKVReadTime() int

func (*Store) GetFlatKVWriteCount

func (ts *Store) GetFlatKVWriteCount() int

func (*Store) GetFlatKVWriteTime

func (ts *Store) GetFlatKVWriteTime() int

func (*Store) GetNodeReadCount

func (ts *Store) GetNodeReadCount() int

func (*Store) GetStoreType

func (ts *Store) GetStoreType() types.StoreType

Implements Store.

func (*Store) LastCommitID

func (ts *Store) LastCommitID() (id types.CommitID)

Implements CommitStore

func (*Store) LastCommitVersion

func (ts *Store) LastCommitVersion() (v int64)

func (*Store) ResetCount

func (ts *Store) ResetCount()

func (*Store) SetPruning

func (ts *Store) SetPruning(pruning types.PruningOptions)

Implements CommitStore

func (*Store) SetUpgradeVersion

func (ts *Store) SetUpgradeVersion(int64)

Jump to

Keyboard shortcuts

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