Documentation ¶
Index ¶
Constants ¶
View Source
const ( DBPrefixApprovers byte = iota DBPrefixTransaction DBPrefixBundle DBPrefixTransactionMetadata DBPrefixAddressTransactions DBPrefixAutoPeering DBPrefixDatabaseVersion )
View Source
const (
CFG_DIRECTORY = "database.directory"
)
View Source
const ( // DBVersion defines the version of the database schema this version of GoShimmer supports. // everytime there's a breaking change regarding the stored data, this version flag should be adjusted. DBVersion = 1 )
Variables ¶
View Source
var (
ErrDBVersionIncompatible = errors.New("database version is not compatible. please delete your database folder and restart")
)
View Source
var (
ErrKeyNotFound = database.ErrKeyNotFound
)
Functions ¶
func CleanupBadgerInstance ¶
func GetBadgerInstance ¶
func GetBadgerInstance() *badger.DB
Types ¶
type KeyOnlyEntry ¶
type KeyOnlyEntry = database.KeyOnlyEntry
Click to show internal directories.
Click to hide internal directories.