dbutil

package
v0.4.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListNames

func ListNames(db *bolt.DB, bucketName []byte) ([]string, error)

ListNames returns a list with all the records names.

func Remove

func Remove(db *bolt.DB, bucketName []byte, name string) error

Remove removes a record from the database.

func SetContext

func SetContext(t testing.TB, path string, bucketName []byte) *bolt.DB

SetContext creates a bucket and its context to test the database operations.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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