migration

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Down00001

func Down00001(tx *sql.Tx) error

Down00001 will be executed as part of a rollback.

func Migrate

func Migrate(connStr string, version int64) error

Migrate executes migration scripts.

func Up00001

func Up00001(tx *sql.Tx) error

Up00001 will be executed as part of a forward migration.

func Version

func Version(connStr string) (int64, error)

Version returns the version of the database schema.

Types

This section is empty.

Jump to

Keyboard shortcuts

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