Documentation ¶
Index ¶
- Variables
- type Migrator
- func (m *Migrator) CreateGoMigration(ctx context.Context, name string) error
- func (m *Migrator) CreateSQLMigrations(ctx context.Context, name string) error
- func (m *Migrator) Init(ctx context.Context) error
- func (m *Migrator) Lock(ctx context.Context) error
- func (m *Migrator) MarkApplied(ctx context.Context) error
- func (m *Migrator) Migrate(ctx context.Context) error
- func (m *Migrator) Rollback(ctx context.Context) error
- func (m *Migrator) Status(ctx context.Context) error
- func (m *Migrator) Unlock(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Migrations = migrate.NewMigrations()
A collection of migrations.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
func (*Migrator) CreateGoMigration ¶
func (*Migrator) CreateSQLMigrations ¶
Click to show internal directories.
Click to hide internal directories.