badger

package
v0.2300.9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package badger implements a CometBFT DB, backed by BadgerDB.

Index

Constants

View Source
const (
	// BackendName is the name of this implementation.
	BackendName = "badger"
)

Variables

View Source
var (

	// DBProvider is a DBProvider to be used when initializing
	// a CometBFT node.
	DBProvider node.DBProvider = badgerDBProvider
)

Functions

func New

func New(fn string, noSuffix bool) (dbm.DB, error)

New constructs a new CometBFT DB, backed by a Badger database at the provided path.

Note: This should only be used by CometBFT, all other places that need a K/V store should favor using BadgerDB directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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