db

package
v0.0.0-...-d82d076 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: MIT, GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBINSTANCE = atomic.Value{}

config instance

Functions

func CreateDB

func CreateDB(config *config.Nodeconfig, name string) (hpbdb.Database, error)

CreateDB creates the chain database.

func GetHpbDbInstance

func GetHpbDbInstance() *hpbdb.LDBDatabase

func OpenDatabase

func OpenDatabase(name string, cache int, handles int) (hpbdb.Database, error)

OpenDatabase opens an existing database with the given name (or creates one if no previous can be found) from within the node's data directory. If the node is an ephemeral one, a memory database is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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