Versions in this module Expand all Collapse all v1 v1.1.0 Aug 13, 2025 v1.0.0 Aug 13, 2025 Changes in this version + func Diff(baseSQL, targetSQL io.Reader, output io.Writer, option DiffOption) error + type ColorMode string + const ColorAlways + const ColorAuto + const ColorNever + func NewColorMode(s string) (ColorMode, bool) + type DiffOption struct + ErrorOnUnsupportedDDL bool + Printer Printer + type NoStylePrinter struct + func (NoStylePrinter) Print(ctx PrintContext, out io.Writer, sql string) error + type PrintContext struct + Index int + TotalSQLs int + type Printer interface + Print func(ctx PrintContext, out io.Writer, sql string) error + func DetectTerminalPrinter(mode ColorMode, stdout *os.File) Printer + func NewColorTerminalPrinter() Printer + func WithSpacer(spacer string, p Printer) Printer