prefixmanager

package
v0.0.0-...-decf009 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivePrefix

func ActivePrefix(dataAccessor database.DataAccessor) (*prefix.Prefix, bool, error)

ActivePrefix returns the current active database prefix, and whether it exists

func DeleteInactivePrefix

func DeleteInactivePrefix(db database.Database) error

DeleteInactivePrefix deletes all data associated with the inactive database prefix, including itself.

func InactivePrefix

func InactivePrefix(dataAccessor database.DataAccessor) (*prefix.Prefix, bool, error)

InactivePrefix returns the current inactive database prefix, and whether it exists

func SetPrefixAsActive

func SetPrefixAsActive(dataAccessor database.DataAccessor, prefix *prefix.Prefix) error

SetPrefixAsActive sets the given prefix as the active prefix

func SetPrefixAsInactive

func SetPrefixAsInactive(dataAccessor database.DataAccessor, prefix *prefix.Prefix) error

SetPrefixAsInactive sets the given prefix as the inactive prefix

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