Documentation
¶
Index ¶
- Constants
- func Contains(slice []string, item string) bool
- func ErrAndExit(msg string)
- func GetAppliedMigrationNames(rows *sql.Rows) ([]string, error)
- func GetDirMigrations(cwd string) ([]string, error)
- func IsValidMigrationName(migrationName string) bool
- func PromptForConfirmation(prompt string) bool
- func SortDirMigrations(migrations []string, ascending bool)
Constants ¶
View Source
const ( ColorBlack = "\033[30m" ColorRed = "\033[31m" ColorGreen = "\033[32m" ColorYellow = "\033[33m" ColorBlue = "\033[34m" ColorMagenta = "\033[35m" ColorCyan = "\033[36m" ColorWhite = "\033[37m" BrightBlack = "\033[30;1m" BrightRed = "\033[31;1m" BrightGreen = "\033[32;1m" BrightYellow = "\033[33;1m" BrightBlue = "\033[34;1m" BrightMagenta = "\033[35;1m" BrightCyan = "\033[36;1m" BrightWhite = "\033[37;1m" Bold = "\033[1m" Underline = "\033[4m" Reversed = "\033[7m" ColorReset = "\033[0m" )
Variables ¶
This section is empty.
Functions ¶
func ErrAndExit ¶
func ErrAndExit(msg string)
func GetDirMigrations ¶
func IsValidMigrationName ¶
func PromptForConfirmation ¶
func SortDirMigrations ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.