pub struct PgDumpAllBuilder { /* private fields */ }Expand description
pg_dumpall extracts a PostgreSQL database cluster into an SQL script file.
Implementations§
Source§impl PgDumpAllBuilder
 
impl PgDumpAllBuilder
Sourcepub fn new() -> Self
 
pub fn new() -> Self
Create a new PgDumpAllBuilder
Sourcepub fn from(settings: &dyn Settings) -> Self
 
pub fn from(settings: &dyn Settings) -> Self
Create a new PgDumpAllBuilder from Settings
Sourcepub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
 
pub fn program_dir<P: Into<PathBuf>>(self, path: P) -> Self
Location of the program binary
Sourcepub fn lock_wait_timeout(self, lock_wait_timeout: u16) -> Self
 
pub fn lock_wait_timeout(self, lock_wait_timeout: u16) -> Self
fail after waiting TIMEOUT for a table lock
Sourcepub fn globals_only(self) -> Self
 
pub fn globals_only(self) -> Self
dump only global objects, not database-specific objects
Sourcepub fn roles_only(self) -> Self
 
pub fn roles_only(self) -> Self
dump only the roles, not the role memberships or privileges
Sourcepub fn schema_only(self) -> Self
 
pub fn schema_only(self) -> Self
dump only the object definitions (schema), not data
Sourcepub fn superuser<S: AsRef<OsStr>>(self, superuser: S) -> Self
 
pub fn superuser<S: AsRef<OsStr>>(self, superuser: S) -> Self
superuser user name to use in the dump
Sourcepub fn tablespaces_only(self) -> Self
 
pub fn tablespaces_only(self) -> Self
dump only the tablespace definitions
Sourcepub fn no_privileges(self) -> Self
 
pub fn no_privileges(self) -> Self
do not dump object privileges (grant/revoke commands)
Sourcepub fn binary_upgrade(self) -> Self
 
pub fn binary_upgrade(self) -> Self
dump in a format suitable for binary upgrade
Sourcepub fn column_inserts(self) -> Self
 
pub fn column_inserts(self) -> Self
dump data as INSERT commands with column names
Sourcepub fn disable_dollar_quoting(self) -> Self
 
pub fn disable_dollar_quoting(self) -> Self
disable dollar quoting, use SQL standard quoting
Sourcepub fn disable_triggers(self) -> Self
 
pub fn disable_triggers(self) -> Self
disable triggers during data-only restore
Sourcepub fn exclude_database<S: AsRef<OsStr>>(self, exclude_database: S) -> Self
 
pub fn exclude_database<S: AsRef<OsStr>>(self, exclude_database: S) -> Self
exclude the named database from the dump
Sourcepub fn extra_float_digits<S: AsRef<OsStr>>(self, extra_float_digits: S) -> Self
 
pub fn extra_float_digits<S: AsRef<OsStr>>(self, extra_float_digits: S) -> Self
set the number of digits displayed for floating-point values
Sourcepub fn load_via_partition_root(self) -> Self
 
pub fn load_via_partition_root(self) -> Self
load data via the partition root table
Sourcepub fn no_comments(self) -> Self
 
pub fn no_comments(self) -> Self
do not dump comments
Sourcepub fn no_publications(self) -> Self
 
pub fn no_publications(self) -> Self
do not dump publications
Sourcepub fn no_role_passwords(self) -> Self
 
pub fn no_role_passwords(self) -> Self
do not dump passwords for roles
Sourcepub fn no_security_labels(self) -> Self
 
pub fn no_security_labels(self) -> Self
do not dump security labels
Sourcepub fn no_subscriptions(self) -> Self
 
pub fn no_subscriptions(self) -> Self
do not dump subscriptions
Sourcepub fn no_table_access_method(self) -> Self
 
pub fn no_table_access_method(self) -> Self
do not dump table access method information
Sourcepub fn no_tablespaces(self) -> Self
 
pub fn no_tablespaces(self) -> Self
do not dump tablespace assignments
Sourcepub fn no_toast_compression(self) -> Self
 
pub fn no_toast_compression(self) -> Self
do not dump TOAST compression information
Sourcepub fn no_unlogged_table_data(self) -> Self
 
pub fn no_unlogged_table_data(self) -> Self
do not dump unlogged table data
Sourcepub fn on_conflict_do_nothing(self) -> Self
 
pub fn on_conflict_do_nothing(self) -> Self
use ON CONFLICT DO NOTHING for INSERTs
Sourcepub fn quote_all_identifiers(self) -> Self
 
pub fn quote_all_identifiers(self) -> Self
quote all identifiers, even if not key words
Sourcepub fn rows_per_insert<S: AsRef<OsStr>>(self, rows_per_insert: S) -> Self
 
pub fn rows_per_insert<S: AsRef<OsStr>>(self, rows_per_insert: S) -> Self
set the number of rows per INSERT command
use SET SESSION AUTHORIZATION commands instead of ALTER OWNER
Sourcepub fn no_password(self) -> Self
 
pub fn no_password(self) -> Self
never prompt for password
Sourcepub fn pg_password<S: AsRef<OsStr>>(self, pg_password: S) -> Self
 
pub fn pg_password<S: AsRef<OsStr>>(self, pg_password: S) -> Self
user password
Trait Implementations§
Source§impl Clone for PgDumpAllBuilder
 
impl Clone for PgDumpAllBuilder
Source§fn clone(&self) -> PgDumpAllBuilder
 
fn clone(&self) -> PgDumpAllBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandBuilder for PgDumpAllBuilder
 
impl CommandBuilder for PgDumpAllBuilder
Source§fn get_program(&self) -> &'static OsStr
 
fn get_program(&self) -> &'static OsStr
Get the program name
Source§fn get_program_dir(&self) -> &Option<PathBuf>
 
fn get_program_dir(&self) -> &Option<PathBuf>
Location of the program binary
Source§fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
 
fn env<S: AsRef<OsStr>>(self, key: S, value: S) -> Self
Set an environment variable for the command