pub struct PgReceiveWalBuilder { /* private fields */ }
Expand description
pg_receivewal
receives PostgreSQL
streaming write-ahead logs.
Implementations§
source§impl PgReceiveWalBuilder
impl PgReceiveWalBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PgReceiveWalBuilder
sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new PgReceiveWalBuilder
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 directory<S: AsRef<OsStr>>(self, directory: S) -> Self
pub fn directory<S: AsRef<OsStr>>(self, directory: S) -> Self
receive write-ahead log files into this directory
sourcepub fn if_not_exists(self) -> Self
pub fn if_not_exists(self) -> Self
do not error if slot already exists when creating a slot
sourcepub fn status_interval<S: AsRef<OsStr>>(self, status_interval: S) -> Self
pub fn status_interval<S: AsRef<OsStr>>(self, status_interval: S) -> Self
time between status packets sent to server (default: 10)
sourcepub fn synchronous(self) -> Self
pub fn synchronous(self) -> Self
flush write-ahead log immediately after writing
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
sourcepub fn create_slot(self) -> Self
pub fn create_slot(self) -> Self
create a new replication slot (for the slot’s name see –slot)
Trait Implementations§
source§impl Clone for PgReceiveWalBuilder
impl Clone for PgReceiveWalBuilder
source§fn clone(&self) -> PgReceiveWalBuilder
fn clone(&self) -> PgReceiveWalBuilder
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 PgReceiveWalBuilder
impl CommandBuilder for PgReceiveWalBuilder
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 PgReceiveWalBuilder
impl Debug for PgReceiveWalBuilder
source§impl Default for PgReceiveWalBuilder
impl Default for PgReceiveWalBuilder
source§fn default() -> PgReceiveWalBuilder
fn default() -> PgReceiveWalBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgReceiveWalBuilder
impl RefUnwindSafe for PgReceiveWalBuilder
impl Send for PgReceiveWalBuilder
impl Sync for PgReceiveWalBuilder
impl Unpin for PgReceiveWalBuilder
impl UnwindSafe for PgReceiveWalBuilder
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