Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToVersion ¶
func ConnectToVersion()
ConnectToVersion connects to the mytoken database and asserts that the database is up-to-date to the current version
func SetVersionAfter ¶
SetVersionAfter sets that the after db migration commands for the passed version were executed
func SetVersionBefore ¶
SetVersionBefore sets that the before db migration commands for the passed version were executed
Types ¶
type DBVersionState ¶
type DBVersionState []UpdateTimes
DBVersionState describes the version state of the db
func GetVersionState ¶
func GetVersionState(rlog log.Ext1FieldLogger, tx *sqlx.Tx) (state DBVersionState, err error)
GetVersionState returns the DBVersionState
func (DBVersionState) Len ¶
func (state DBVersionState) Len() int
Len returns the len of DBVersionState
func (DBVersionState) Less ¶
func (state DBVersionState) Less(i, j int) bool
Less checks if a version is less than another
func (DBVersionState) Sort ¶
func (state DBVersionState) Sort()
Sort sorts this DBVersionState by the version
func (DBVersionState) Swap ¶
func (state DBVersionState) Swap(i, j int)
Swap swaps to elements of DBVersionState
Click to show internal directories.
Click to hide internal directories.