dbadapter

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0, UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StoreConstructor

func StoreConstructor(db dbm.DB, opts types.StoreOptions) types.CommitStore

Implements CommitStoreConstructor.

Types

type Store

type Store struct {
	dbm.DB
}

Wrapper type for dbm.Db with implementation of Store

func (Store) CacheWrap

func (dsa Store) CacheWrap() types.Store

CacheWrap cache wraps the underlying store.

func (Store) Commit

func (dsa Store) Commit() types.CommitID

Implements Committer/CommitStore.

func (Store) GetStoreOptions

func (dsa Store) GetStoreOptions() types.StoreOptions

Implements Committer/CommitStore.

func (Store) LastCommitID

func (dsa Store) LastCommitID() types.CommitID

Implements Committer/CommitStore.

func (Store) LoadLatestVersion

func (dsa Store) LoadLatestVersion() error

Implements Committer/CommitStore.

func (Store) LoadVersion

func (dsa Store) LoadVersion(ver int64) error

Implements Committer/CommitStore.

func (Store) SetStoreOptions

func (dsa Store) SetStoreOptions(types.StoreOptions)

Implements Committer/CommitStore.

func (Store) Write

func (dsa Store) Write()

Implements Store.

Jump to

Keyboard shortcuts

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