Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DumpFormatter ¶
type DumpFormatter struct {
// contains filtered or unexported fields
}
DumpFormatter handles formatting SQL output for database dumps
func NewDumpFormatter ¶
func NewDumpFormatter(dbVersion string, targetSchema string, noComments bool, qualifySchema bool) *DumpFormatter
NewDumpFormatter creates a new DumpFormatter. When qualifySchema is true, comment headers keep the target schema name (instead of "-") to match the forced schema-qualified DDL emitted by `dump --qualify-schema`.
func (*DumpFormatter) FormatMultiFile ¶
func (f *DumpFormatter) FormatMultiFile(diffs []diff.Diff, outputPath string) error
FormatMultiFile creates multiple SQL files organized by object type
func (*DumpFormatter) FormatSingleFile ¶
func (f *DumpFormatter) FormatSingleFile(diffs []diff.Diff) string
FormatSingleFile formats SQL output for single-file dump with pg_dump-style headers
Click to show internal directories.
Click to hide internal directories.