migrationlib

package
v0.0.0-...-aac4589 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DBVersion

func DBVersion(db queryExecutor) (uint64, error)

DBVersion returns the current version of the database schema. The library exposes a GetDBVersion function which however requires a *sql.Db object. Several contest flows work instead within a transactional context, so we need to be able to extract the version in a way that is agnostic to the `sql` object used (either `sql.Tx` or `sql.Db`).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL