migratecmd

package
v0.0.0-...-5a6bfb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2026 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllSubcommands

func AllSubcommands(sqlo *sql.DB) []*cobra.Command

AllSubcommands returns all subcommands of the migrate command.

func MigrateCmd

func MigrateCmd(sqlo *sql.DB) *cobra.Command

MigrateCmd returns the main migrate command.

func MigrateCreateCmd

func MigrateCreateCmd(sqlo *sql.DB) *cobra.Command

MigrateCreateCmd returns a command to create a new migration.

func MigrateDownCmd

func MigrateDownCmd(sqlo *sql.DB) *cobra.Command

MigrateDownCmd returns a command to rollback the most recent database migration.

func MigrateDownToCmd

func MigrateDownToCmd(sqlo *sql.DB) *cobra.Command

MigrateDownToCmd returns a command to rollback all database migrations down to a specific version.

func MigrateRedoCmd

func MigrateRedoCmd(sqlo *sql.DB) *cobra.Command

MigrateRedoCmd returns a command to rollback the most recent database migration and reapply it.

func MigrateStatusCmd

func MigrateStatusCmd(sqlo *sql.DB) *cobra.Command

MigrateStatusCmd returns a command to get database migration status.

func MigrateUpCmd

func MigrateUpCmd(sqlo *sql.DB) *cobra.Command

MigrateUpCmd returns a command to apply all available database migrations.

func MigrateUpToCmd

func MigrateUpToCmd(sqlo *sql.DB) *cobra.Command

MigrateUpToCmd returns a command to apply all available database migrations up to a specific version.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL