persistence

package
v1.4.11 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 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