persistence

package
v1.4.10 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *bolt.DB

DB is the lazy-loaded reference to the BoltDB instance. Use the GetDB() function to obtain this.

Functions

func GetDB

func GetDB() (*bolt.DB, error)

GetDB returns the singleton instance of the BoltDB connection. This is not a threadsafe object, but transactions are. Any caller using this object should use a transaction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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