Struct postgresql_commands::pg_upgrade::PgUpgradeBuilder
source · pub struct PgUpgradeBuilder { /* private fields */ }
Expand description
pg_upgrade
upgrades a PostgreSQL
cluster to a different major version.
Implementations§
source§impl PgUpgradeBuilder
impl PgUpgradeBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PgUpgradeBuilder
sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new PgUpgradeBuilder
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 old_bindir<S: AsRef<OsStr>>(self, old_bindir: S) -> Self
pub fn old_bindir<S: AsRef<OsStr>>(self, old_bindir: S) -> Self
old cluster executable directory
sourcepub fn new_bindir<S: AsRef<OsStr>>(self, new_bindir: S) -> Self
pub fn new_bindir<S: AsRef<OsStr>>(self, new_bindir: S) -> Self
new cluster executable directory
sourcepub fn old_datadir<S: AsRef<OsStr>>(self, old_datadir: S) -> Self
pub fn old_datadir<S: AsRef<OsStr>>(self, old_datadir: S) -> Self
old cluster data directory
sourcepub fn new_datadir<S: AsRef<OsStr>>(self, new_datadir: S) -> Self
pub fn new_datadir<S: AsRef<OsStr>>(self, new_datadir: S) -> Self
new cluster data directory
sourcepub fn jobs<S: AsRef<OsStr>>(self, jobs: S) -> Self
pub fn jobs<S: AsRef<OsStr>>(self, jobs: S) -> Self
number of simultaneous processes or threads to use
sourcepub fn old_options<S: AsRef<OsStr>>(self, old_options: S) -> Self
pub fn old_options<S: AsRef<OsStr>>(self, old_options: S) -> Self
old cluster options to pass to the server
sourcepub fn new_options<S: AsRef<OsStr>>(self, new_options: S) -> Self
pub fn new_options<S: AsRef<OsStr>>(self, new_options: S) -> Self
new cluster options to pass to the server
Trait Implementations§
source§impl Clone for PgUpgradeBuilder
impl Clone for PgUpgradeBuilder
source§fn clone(&self) -> PgUpgradeBuilder
fn clone(&self) -> PgUpgradeBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CommandBuilder for PgUpgradeBuilder
impl CommandBuilder for PgUpgradeBuilder
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
source§fn get_program_file(&self) -> PathBuf
fn get_program_file(&self) -> PathBuf
Fully qualified path to the program binary
source§impl Debug for PgUpgradeBuilder
impl Debug for PgUpgradeBuilder
source§impl Default for PgUpgradeBuilder
impl Default for PgUpgradeBuilder
source§fn default() -> PgUpgradeBuilder
fn default() -> PgUpgradeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgUpgradeBuilder
impl RefUnwindSafe for PgUpgradeBuilder
impl Send for PgUpgradeBuilder
impl Sync for PgUpgradeBuilder
impl Unpin for PgUpgradeBuilder
impl UnwindSafe for PgUpgradeBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)