badgerdb

package
v0.0.0-...-1e73dc8 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(dbName, dir string) (locketdb.DB, error)

NewDB creates a Badger key-value store backed to the directory dir supplied. If dir does not exist, it will be created.

func NewDBWithOptions

func NewDBWithOptions(opts badger.Options) (*badgerDB, error)

NewDBWithOptions creates a BadgerDB key value store gives the flexibility of initializing a database with the respective options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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