postgres

package
v0.0.0-...-b90bf7d Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration struct {
	ID    int
	Stmts []string
}

Migration specifies the version and SQL of a single database migration.

type Migrations

type Migrations []Migration

Migrations is an array of migrations.

func NewMigrations

func NewMigrations() *Migrations

NewMigrations returns a new list migrations.

func (*Migrations) Add

func (m *Migrations) Add(id int, stmts ...string)

Add appends a migration the list.

func (Migrations) Migrate

func (m Migrations) Migrate(db *sqlx.DB) error

Migrate executes all necessary migrations in the specified database.

Jump to

Keyboard shortcuts

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