Skip to main content

Module dump

Module dump 

Source
Expand description

Wrapper around the pg_dump external command.

The actual process is invoked through a CommandRunner trait so that unit tests can substitute a deterministic implementation without requiring a real PostgreSQL installation. The default TokioCommandRunner simply shells out to pg_dump via tokio::process::Command.

Structs§

DumpRequest
Description of a pg_dump invocation.
TokioCommandRunner
Default CommandRunner that uses tokio::process::Command.

Enums§

DumpFormat
pg_dump archive format.

Traits§

CommandRunner
Trait abstracting an external command execution. The default implementation is TokioCommandRunner.

Functions§

build_pg_dump_args
Build the argv vector used to invoke pg_dump for a DumpRequest.
is_directory_dump
Returns true if path looks like a directory-format dump (used for parallel restore).
run_pg_dump
Run pg_dump according to req using the supplied CommandRunner.