Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct { Conn string // pg connection string Table string // table to store applied migrations: default migrations MigrationDir string // relative directory holding the migrations: default migrations }
Migrator struct holds migration configuration
func DefaultMigrator ¶
DefaultMigrator constructs a Migrator with default values
func (*Migrator) CreateMigration ¶
CreateMigration creates migration in the specified MigrationDir The migration created has the following format: <timestamptz>_<some-name>.pgsql
Click to show internal directories.
Click to hide internal directories.