Documentation
¶
Index ¶
- func AllSubcommands(sqlo *sql.DB) []*cobra.Command
- func MigrateCmd(sqlo *sql.DB) *cobra.Command
- func MigrateCreateCmd(sqlo *sql.DB) *cobra.Command
- func MigrateDownCmd(sqlo *sql.DB) *cobra.Command
- func MigrateDownToCmd(sqlo *sql.DB) *cobra.Command
- func MigrateRedoCmd(sqlo *sql.DB) *cobra.Command
- func MigrateStatusCmd(sqlo *sql.DB) *cobra.Command
- func MigrateUpCmd(sqlo *sql.DB) *cobra.Command
- func MigrateUpToCmd(sqlo *sql.DB) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllSubcommands ¶
AllSubcommands returns all subcommands of the migrate command.
func MigrateCmd ¶
MigrateCmd returns the main migrate command.
func MigrateCreateCmd ¶
MigrateCreateCmd returns a command to create a new migration.
func MigrateDownCmd ¶
MigrateDownCmd returns a command to rollback the most recent database migration.
func MigrateDownToCmd ¶
MigrateDownToCmd returns a command to rollback all database migrations down to a specific version.
func MigrateRedoCmd ¶
MigrateRedoCmd returns a command to rollback the most recent database migration and reapply it.
func MigrateStatusCmd ¶
MigrateStatusCmd returns a command to get database migration status.
func MigrateUpCmd ¶
MigrateUpCmd returns a command to apply all available database migrations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.