pub struct PgResetWalBuilder { /* private fields */ }
Expand description
pg_resetwal
resets the PostgreSQL
write-ahead log.
Implementations§
source§impl PgResetWalBuilder
impl PgResetWalBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new PgResetWalBuilder
sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new PgResetWalBuilder
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 commit_timestamp_ids<S: AsRef<OsStr>>(self, xid1: S, xid2: S) -> Self
pub fn commit_timestamp_ids<S: AsRef<OsStr>>(self, xid1: S, xid2: S) -> Self
set oldest and newest transactions bearing commit timestamp (zero means no change)
sourcepub fn next_wal_file<S: AsRef<OsStr>>(self, walfile: S) -> Self
pub fn next_wal_file<S: AsRef<OsStr>>(self, walfile: S) -> Self
set minimum starting location for new WAL
sourcepub fn multixact_ids<S: AsRef<OsStr>>(self, mxid1: S, mxid2: S) -> Self
pub fn multixact_ids<S: AsRef<OsStr>>(self, mxid1: S, mxid2: S) -> Self
set next and oldest multitransaction ID
sourcepub fn multixact_offset<S: AsRef<OsStr>>(self, offset: S) -> Self
pub fn multixact_offset<S: AsRef<OsStr>>(self, offset: S) -> Self
set next multitransaction offset
sourcepub fn oldest_transaction_id<S: AsRef<OsStr>>(self, xid: S) -> Self
pub fn oldest_transaction_id<S: AsRef<OsStr>>(self, xid: S) -> Self
set oldest transaction ID
sourcepub fn next_transaction_id<S: AsRef<OsStr>>(self, xid: S) -> Self
pub fn next_transaction_id<S: AsRef<OsStr>>(self, xid: S) -> Self
set next transaction ID
sourcepub fn wal_segsize<S: AsRef<OsStr>>(self, size: S) -> Self
pub fn wal_segsize<S: AsRef<OsStr>>(self, size: S) -> Self
size of WAL segments, in megabytes
Trait Implementations§
source§impl Clone for PgResetWalBuilder
impl Clone for PgResetWalBuilder
source§fn clone(&self) -> PgResetWalBuilder
fn clone(&self) -> PgResetWalBuilder
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 PgResetWalBuilder
impl CommandBuilder for PgResetWalBuilder
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 PgResetWalBuilder
impl Debug for PgResetWalBuilder
source§impl Default for PgResetWalBuilder
impl Default for PgResetWalBuilder
source§fn default() -> PgResetWalBuilder
fn default() -> PgResetWalBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PgResetWalBuilder
impl RefUnwindSafe for PgResetWalBuilder
impl Send for PgResetWalBuilder
impl Sync for PgResetWalBuilder
impl Unpin for PgResetWalBuilder
impl UnwindSafe for PgResetWalBuilder
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
)