mig

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 8 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 []string) func(*bolt.DB, *bolt.DB) error

func DeleteBucket

func DeleteBucket(path []string) func(*bolt.DB, *bolt.DB) error

func EnsureBaseVersion

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

func GetVersion

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

func OpenReadOnlyDB

func OpenReadOnlyDB(dbPath string, version *semver.Version) (*bolt.DB, error)

func SetBucket

func SetBucket(tx *bolt.Tx, path []string) (*bolt.Bucket, error)

func SetKey

func SetKey(tx *bolt.Tx, path []string, 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