Versions in this module Expand all Collapse all v0 v0.1.1 Sep 8, 2026 Changes in this version + func PrepareConsole() v0.1.0 Aug 31, 2026 Changes in this version + func Accent(text string) string + func Bold(text string) string + func Danger(text string) string + func DangerBadge(text string) string + func DangerBold(text string) string + func IsColorEnabled() bool + func IsTerminal(r io.Reader) bool + func LoadMigrations(cfg *config.Config) ([]migration.Entry, error) + func Muted(text string) string + func PrintDoctorHuman(w io.Writer, report DoctorReport) + func PrintExecutedHuman(w io.Writer, executed []ExecutedMigration) + func PrintJSON(w io.Writer, v any) error + func PrintStatusHuman(w io.Writer, rows []StatusRow) + func PromptConfirmation(in io.Reader, out io.Writer, prompts []string, expectedWord string) (bool, error) + func SetColorEnabled(enabled bool) + func Success(text string) string + func SuccessBadge(text string) string + func SuccessBadgeLine(text string) string + func Warning(text string) string + type ConfigError struct + Err error + func (e *ConfigError) Error() string + func (e *ConfigError) Unwrap() error + type Connection struct + DB migration.DB + Provider migration.Provider + func BuildEngine(ctx context.Context, cfg *config.Config) (*migration.Engine, *Connection, error) + func Connect(ctx context.Context, cfg *config.Config) (*Connection, error) + func (c *Connection) Close() error + type DoctorCheck struct + Detail string + Name string + OK bool + Skipped bool + type DoctorReport struct + Checks []DoctorCheck + Healthy bool + type ExecutedMigration struct + AppliedAt string + ExecutionMS int64 + Name string + Version uint64 + func FromRecords(records []migration.Record) []ExecutedMigration + type PromptStep struct + Message string + type StatusRow struct + Applied bool + AppliedAt string + Batch int + Dirty bool + Name string + Version uint64 + func FromStatusEntries(entries []migration.StatusEntry) []StatusRow