Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MigrateDown ¶
type MigrateDown struct {
// contains filtered or unexported fields
}
func (MigrateDown) CommandName ¶
func (mu MigrateDown) CommandName() string
func (*MigrateDown) Flags ¶
func (mu *MigrateDown) Flags() *pflag.FlagSet
func (MigrateDown) Name ¶
func (mu MigrateDown) Name() string
func (*MigrateDown) ParseFlags ¶
func (mu *MigrateDown) ParseFlags(args []string)
func (*MigrateDown) RunMigrations ¶
Run will run migrations on the current folder, it will look for the migrations folder and attempt to run the migrations using internal pop tooling
type MigrateUp ¶
type MigrateUp struct {
// contains filtered or unexported fields
}
func (MigrateUp) CommandName ¶
func (*MigrateUp) ParseFlags ¶
type Migrator ¶
type Migrator interface {
CommandName() string
RunMigrations(ctx context.Context, root string, args []string) error
}
Migrator type allows to identify migration runner plugins.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) ParentName ¶
func (*Plugin) SubcommandName ¶
Click to show internal directories.
Click to hide internal directories.