mig

package
v0.31.6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 15 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 MigrateModel added in v0.31.2

func MigrateModel(log *zerolog.Logger, roDB, rwDB *bolt.DB) 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