Documentation ¶
Overview ¶
Package pgmigrate performs Postgres database migrations. It aims to be simple, robust, and verbose.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migration ¶
type Migration struct { Version int64 Name string Up string Down string // contains filtered or unexported fields }
Migration is an individual database migration to be performed.
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator contains a database connection and required state to perform migrations.
func NewMigrator ¶
NewMigrator creates a new Migrator for the given postgres url.
func (*Migrator) Add ¶
Add adds Migrations to the Migrator. This method can be called repeatedly any time before an Up or Down method is called.
Click to show internal directories.
Click to hide internal directories.