migrations

package module
v0.0.0-...-bad0470 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2017 License: MIT Imports: 7 Imported by: 0

README

migrations

GoDoc

SQL migrations manager.

Install

go get github.com/altipla-consulting/migrations

Contributing

You can make pull requests or create issues in GitHub. Any code you send should be formatted using gofmt.

License

MIT License

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(db *sql.DB, migrations []Migration) error

func RunConnection

func RunConnection(db *sql.DB, conn *schema.Connection, migrations []Migration) error

Types

type Migration

type Migration struct {
	Name  string
	Apply func(db *sql.DB, conn *schema.Connection) error
}

Jump to

Keyboard shortcuts

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