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

postgres

package
v2.4.6 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDump

func CreateDump(dbCredentials *common.DbCredentials, writer io.WriteCloser, whereClauseForTables map[string]string) (*sql.DB, error)

CreateDump opens a connection to the given Postgres database and writes a complete, replayable SQL dump to writer.

Unlike the MySQL dumper, there is no manual TLS-then-fallback retry here: `sslmode=prefer` negotiates TLS automatically and falls back to plaintext on its own if the server doesn't support it.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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