mig

package
v0.30.11 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backup

func Backup(db *bolt.DB, version *semver.Version) error

func BackupFilename

func BackupFilename(dbPath string, version *semver.Version) string

func CreateBucket

func CreateBucket(path bdb.Path) func(*zerolog.Logger, *bolt.DB, *bolt.DB) error

func DeleteBucket

func DeleteBucket(path bdb.Path) func(*zerolog.Logger, *bolt.DB, *bolt.DB) error

func EnsureBaseVersion

func EnsureBaseVersion(_ *zerolog.Logger, _, rwDB *bolt.DB) error

func GetVersion

func GetVersion(db *bolt.DB) (*semver.Version, error)

func OpenDB added in v0.30.0

func OpenDB(cfg *bdb.Config) (*bolt.DB, error)

func OpenReadOnlyDB

func OpenReadOnlyDB(cfg *bdb.Config, version *semver.Version) (*bolt.DB, error)

func SetBucket

func SetBucket(tx *bolt.Tx, path bdb.Path) (*bolt.Bucket, error)

func SetKey

func SetKey(tx *bolt.Tx, path bdb.Path, key, value []byte) error

func SetVersion

func SetVersion(db *bolt.DB, version *semver.Version) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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