Documentation
¶
Index ¶
- Constants
- type Logger
- func (l *Logger) DryRunDownStart(version int64)
- func (l *Logger) DryRunDownSummary(totalMigrations, totalStatements int, operation string)
- func (l *Logger) DryRunMigrationComplete(source string, duration float64)
- func (l *Logger) DryRunMigrationStart(source string, version int64)
- func (l *Logger) DryRunSQL(query string, args ...any)
- func (l *Logger) DryRunStart(version int64)
- func (l *Logger) DryRunSummary(totalMigrations, totalStatements int)
- func (l *Logger) Info(msg string)
- func (l *Logger) Infof(format string, args ...any)
- func (l *Logger) PrintResult(result *goose.MigrationResult)
- func (l *Logger) PrintResults(results []*goose.MigrationResult)
- func (l *Logger) PrintStatus(status *goose.MigrationStatus)
- func (l *Logger) PrintStatuses(statuses []*goose.MigrationStatus)
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) SetOutput(w io.Writer)
Constants ¶
View Source
const ( DefaultTerminalWidth = 80 DotChar = "." BulletChar = " •" )
Constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶ added in v0.4.1
type Logger struct {
// contains filtered or unexported fields
}
Logger represents a configurable logger instance.
func (*Logger) DryRunDownStart ¶ added in v0.4.1
func (*Logger) DryRunDownSummary ¶ added in v0.4.1
func (*Logger) DryRunMigrationComplete ¶ added in v0.4.1
func (*Logger) DryRunMigrationStart ¶ added in v0.4.1
func (*Logger) DryRunStart ¶ added in v0.4.1
func (*Logger) DryRunSummary ¶ added in v0.4.1
func (*Logger) PrintResult ¶ added in v0.4.1
func (l *Logger) PrintResult(result *goose.MigrationResult)
func (*Logger) PrintResults ¶ added in v0.4.1
func (l *Logger) PrintResults(results []*goose.MigrationResult)
func (*Logger) PrintStatus ¶ added in v0.4.1
func (l *Logger) PrintStatus(status *goose.MigrationStatus)
func (*Logger) PrintStatuses ¶ added in v0.4.1
func (l *Logger) PrintStatuses(statuses []*goose.MigrationStatus)
Click to show internal directories.
Click to hide internal directories.