Versions in this module Expand all Collapse all v1 v1.0.0 Apr 29, 2022 Changes in this version + var ErrorLogger = color.New(color.FgRed, color.Bold) + var ErrorLoggerLight = color.New(color.FgRed) + var InfoLogger = color.New(color.FgCyan, color.Bold) + var InfoLoggerLight = color.New(color.FgCyan) + var SuccessLogger = color.New(color.FgGreen, color.Bold) + type Config struct + LockKey string + LockTimeout time.Duration + Logger Logger + type EngineOption func(*Morph) + func SetMigrationTableName(name string) EngineOption + func SetSatementTimeoutInSeconds(n int) EngineOption + func WithLock(key string) EngineOption + func WithLockTimeout(lockTimeout time.Duration) EngineOption + func WithLogger(logger Logger) EngineOption + type Logger interface + Printf func(format string, v ...interface{}) + Println func(v ...interface{}) + type Morph struct + func New(ctx context.Context, driver drivers.Driver, source sources.Source, ...) (*Morph, error) + func (m *Morph) Apply(limit int) (int, error) + func (m *Morph) ApplyAll() error + func (m *Morph) ApplyDown(limit int) (int, error) + func (m *Morph) Close() error