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.
Click to show internal directories.
Click to hide internal directories.