transient

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 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 added in v1.1.6

func (ts *Store) CommitterCommit(*iavl.TreeDelta) (id types.CommitID, _ *iavl.TreeDelta)

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 added in v1.1.5

func (ts *Store) GetFlatKVReadCount() int

func (*Store) GetFlatKVReadTime added in v1.1.5

func (ts *Store) GetFlatKVReadTime() int

func (*Store) GetFlatKVWriteCount added in v1.1.5

func (ts *Store) GetFlatKVWriteCount() int

func (*Store) GetFlatKVWriteTime added in v1.1.5

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 added in v1.6.3

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 added in v1.3.0

func (ts *Store) SetUpgradeVersion(int64)

Jump to

Keyboard shortcuts

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