Documentation
¶
Index ¶
- func Register(m *Migration)
- func Reset()
- type Migration
- type Migrator
- func (m *Migrator) Down(ctx context.Context, steps int) error
- func (m *Migrator) GetApplied(ctx context.Context) (map[string]bool, error)
- func (m *Migrator) Init(ctx context.Context) error
- func (m *Migrator) Up(ctx context.Context, steps int) error
- func (m *Migrator) UpDryRun(ctx context.Context, steps int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
func (*Migrator) GetApplied ¶
Click to show internal directories.
Click to hide internal directories.