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§
- Dump
Request - Description of a
pg_dumpinvocation. - Tokio
Command Runner - Default
CommandRunnerthat usestokio::process::Command.
Enums§
- Dump
Format pg_dumparchive format.
Traits§
- Command
Runner - Trait abstracting an external command execution. The default
implementation is
TokioCommandRunner.
Functions§
- build_
pg_ dump_ args - Build the argv vector used to invoke
pg_dumpfor aDumpRequest. - is_
directory_ dump - Returns
trueifpathlooks like a directory-format dump (used for parallel restore). - run_
pg_ dump - Run
pg_dumpaccording torequsing the suppliedCommandRunner.