Struct postgresql_commands::clusterdb::ClusterDbBuilder
source · pub struct ClusterDbBuilder { /* private fields */ }
Expand description
clusterdb clusters all previously clustered tables in a database.
Implementations§
source§impl ClusterDbBuilder
impl ClusterDbBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ClusterDbBuilder
sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new ClusterDbBuilder from Settings
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 maintenance_db<S: AsRef<OsStr>>(self, db: S) -> Self
pub fn maintenance_db<S: AsRef<OsStr>>(self, db: S) -> Self
Alternate maintenance database
Trait Implementations§
source§impl Clone for ClusterDbBuilder
impl Clone for ClusterDbBuilder
source§fn clone(&self) -> ClusterDbBuilder
fn clone(&self) -> ClusterDbBuilder
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 ClusterDbBuilder
impl CommandBuilder for ClusterDbBuilder
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 get_program_file(&self) -> PathBuf
fn get_program_file(&self) -> PathBuf
Fully qualified path to the program binary
source§impl Debug for ClusterDbBuilder
impl Debug for ClusterDbBuilder
source§impl Default for ClusterDbBuilder
impl Default for ClusterDbBuilder
source§fn default() -> ClusterDbBuilder
fn default() -> ClusterDbBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClusterDbBuilder
impl RefUnwindSafe for ClusterDbBuilder
impl Send for ClusterDbBuilder
impl Sync for ClusterDbBuilder
impl Unpin for ClusterDbBuilder
impl UnwindSafe for ClusterDbBuilder
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