upgrades

package
v0.0.0-...-8217dc8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const NumberOfUpgrades = 21

Variables

View Source
var UnsupportedDatabaseVersion = fmt.Errorf("unsupported database version")

Functions

func GetVersion

func GetVersion(db *sql.DB) (int, error)

func Run

func Run(log log.Logger, dialectName string, db *sql.DB) error

func SetVersion

func SetVersion(tx *sql.Tx, version int) error

Types

type Dialect

type Dialect int
const (
	Postgres Dialect = iota
	SQLite
)

func (Dialect) String

func (dialect Dialect) String() string

Jump to

Keyboard shortcuts

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