Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type PostgresMigrator ¶
type PostgresMigrator struct {
// contains filtered or unexported fields
}
func (*PostgresMigrator) CreateDb ¶
func (m *PostgresMigrator) CreateDb() error
CreateDb attempts to create the database if it does not exists
func (*PostgresMigrator) Down ¶
func (m *PostgresMigrator) Down() (err error)
Down migrates all the way down
func (*PostgresMigrator) Migrate ¶
func (m *PostgresMigrator) Migrate(version uint) (err error)
Migrate to a specific version either up or down
func (*PostgresMigrator) Up ¶
func (m *PostgresMigrator) Up() (err error)
Up migrates all the way up, usually go for local environments
Click to show internal directories.
Click to hide internal directories.