prefixmanager

package
v0.11.12 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: ISC Imports: 4 Imported by: 1

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(dataAccessor database.DataAccessor) 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