Documentation ¶
Index ¶
- func Backup(db *bolt.DB, version *semver.Version) error
- func BackupFilename(dbPath string, version *semver.Version) string
- func CreateBucket(path bdb.Path) func(*zerolog.Logger, *bolt.DB, *bolt.DB) error
- func DeleteBucket(path bdb.Path) func(*zerolog.Logger, *bolt.DB, *bolt.DB) error
- func EnsureBaseVersion(_ *zerolog.Logger, _, rwDB *bolt.DB) error
- func GetVersion(db *bolt.DB) (*semver.Version, error)
- func MigrateModel(log *zerolog.Logger, roDB, rwDB *bolt.DB) error
- func OpenDB(cfg *bdb.Config) (*bolt.DB, error)
- func OpenReadOnlyDB(cfg *bdb.Config, version *semver.Version) (*bolt.DB, error)
- func SetBucket(tx *bolt.Tx, path bdb.Path) (*bolt.Bucket, error)
- func SetKey(tx *bolt.Tx, path bdb.Path, key, value []byte) error
- func SetVersion(db *bolt.DB, version *semver.Version) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupFilename ¶
func CreateBucket ¶
func DeleteBucket ¶
func GetVersion ¶
func MigrateModel ¶ added in v0.31.2
func OpenReadOnlyDB ¶
func SetVersion ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.