db

package
v100.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db dbm.DB, prefix string) store.Store

New returns a Store that wraps any DB (with an optional prefix in case you want to use one DB with many light clients).

func NewWithDBVersion

func NewWithDBVersion(db dbm.DB, prefix string, dbKeyVersion string) store.Store

Types

type LightStoreKeyLayout

type LightStoreKeyLayout interface {
	ParseLBKey(key []byte, storePrefix string) (height int64, err error)
	LBKey(height int64, prefix string) []byte
	SizeKey(prefix string) []byte
}

Jump to

Keyboard shortcuts

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