dbadapter

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 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 {
	DB 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) Delete

func (dsa Store) Delete(key []byte)

Delete deletes the key. Panics on nil key.

func (Store) Get

func (dsa Store) Get(key []byte) []byte

Get returns nil iff key doesn't exist. Panics on nil key.

func (Store) GetStoreOptions

func (dsa Store) GetStoreOptions() types.StoreOptions

Implements Committer/CommitStore.

func (Store) Has

func (dsa Store) Has(key []byte) bool

Has checks if a key exists. Panics on nil key.

func (Store) Iterator

func (dsa Store) Iterator(start, end []byte) types.Iterator

Iterator over a domain of keys in ascending order.

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) ReverseIterator

func (dsa Store) ReverseIterator(start, end []byte) types.Iterator

Iterator over a domain of keys in descending order.

func (Store) Set

func (dsa Store) Set(key, value []byte)

Set sets the key. Panics on nil key or value.

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