Documentation ¶
Overview ¶
Package badger contains convenience helpers for integrating BadgerDB.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrationFlags = flag.NewFlagSet("", flag.ContinueOnError)
MigrationFlags has the migration flags.
Functions ¶
func NewLogAdapter ¶
NewLogAdapter returns a badger.Logger backed by an oasis-node logger.
func Open ¶ added in v0.2102.0
func Open(opts badger.Options) (*badger.DB, error)
Open returns a new DB object.
func OpenManaged ¶ added in v0.2102.0
func OpenManaged(opts badger.Options) (*badger.DB, error)
OpenManaged returns a new DB object in managed mode.
Types ¶
type GCWorker ¶
type GCWorker struct {
// contains filtered or unexported fields
}
GCWorker is a BadgerDB value log GC worker.
func NewGCWorker ¶
NewGCWorker creates a new BadgerDB value log GC worker for the provided db, logging to the specified logger.
Click to show internal directories.
Click to hide internal directories.