Struct postgresql_commands::pg_rewind::PgRewindBuilder
source · pub struct PgRewindBuilder { /* private fields */ }
Expand description
pg_rewind
synchronizes a PostgreSQL
data directory with another data directory.
Implementations§
source§impl PgRewindBuilder
impl PgRewindBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PgRewindBuilder
sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new PgRewindBuilder
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 restore_target_wal(self) -> Self
pub fn restore_target_wal(self) -> Self
use restore_command
in target configuration to retrieve WAL files from archives
sourcepub fn target_pgdata<P: Into<PathBuf>>(self, directory: P) -> Self
pub fn target_pgdata<P: Into<PathBuf>>(self, directory: P) -> Self
existing data directory to modify
sourcepub fn source_pgdata<P: Into<PathBuf>>(self, directory: P) -> Self
pub fn source_pgdata<P: Into<PathBuf>>(self, directory: P) -> Self
source data directory to synchronize with
sourcepub fn source_server<S: AsRef<OsStr>>(self, connstr: S) -> Self
pub fn source_server<S: AsRef<OsStr>>(self, connstr: S) -> Self
source server to synchronize with
sourcepub fn write_recovery_conf(self) -> Self
pub fn write_recovery_conf(self) -> Self
write configuration for replication (requires –source-server)
sourcepub fn config_file<S: AsRef<OsStr>>(self, filename: S) -> Self
pub fn config_file<S: AsRef<OsStr>>(self, filename: S) -> Self
use specified main server configuration file when running target cluster
sourcepub fn no_ensure_shutdown(self) -> Self
pub fn no_ensure_shutdown(self) -> Self
do not automatically fix unclean shutdown
Trait Implementations§
source§impl Clone for PgRewindBuilder
impl Clone for PgRewindBuilder
source§fn clone(&self) -> PgRewindBuilder
fn clone(&self) -> PgRewindBuilder
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 PgRewindBuilder
impl CommandBuilder for PgRewindBuilder
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 PgRewindBuilder
impl Debug for PgRewindBuilder
source§impl Default for PgRewindBuilder
impl Default for PgRewindBuilder
source§fn default() -> PgRewindBuilder
fn default() -> PgRewindBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgRewindBuilder
impl RefUnwindSafe for PgRewindBuilder
impl Send for PgRewindBuilder
impl Sync for PgRewindBuilder
impl Unpin for PgRewindBuilder
impl UnwindSafe for PgRewindBuilder
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
)