Help us shape the future of Go! Take the 2026 Go Developer Survey

dump

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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) *DumpFormatter

NewDumpFormatter creates a new DumpFormatter

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL