pub struct ReindexDbBuilder { /* private fields */ }
Expand description
reindexdb
reindexes a PostgreSQL
database.
Implementations§
Source§impl ReindexDbBuilder
impl ReindexDbBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ReindexDbBuilder
Sourcepub fn from(settings: &dyn Settings) -> Self
pub fn from(settings: &dyn Settings) -> Self
Create a new ReindexDbBuilder
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 concurrently(self) -> Self
pub fn concurrently(self) -> Self
reindex concurrently
Sourcepub fn tablespace<S: AsRef<OsStr>>(self, tablespace: S) -> Self
pub fn tablespace<S: AsRef<OsStr>>(self, tablespace: S) -> Self
tablespace where indexes are rebuilt
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, maintenance_db: S) -> Self
pub fn maintenance_db<S: AsRef<OsStr>>(self, maintenance_db: S) -> Self
alternate maintenance database
Trait Implementations§
Source§impl Clone for ReindexDbBuilder
impl Clone for ReindexDbBuilder
Source§fn clone(&self) -> ReindexDbBuilder
fn clone(&self) -> ReindexDbBuilder
Returns a duplicate 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 ReindexDbBuilder
impl CommandBuilder for ReindexDbBuilder
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 ReindexDbBuilder
impl Debug for ReindexDbBuilder
Source§impl Default for ReindexDbBuilder
impl Default for ReindexDbBuilder
Source§fn default() -> ReindexDbBuilder
fn default() -> ReindexDbBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReindexDbBuilder
impl RefUnwindSafe for ReindexDbBuilder
impl Send for ReindexDbBuilder
impl Sync for ReindexDbBuilder
impl Unpin for ReindexDbBuilder
impl UnwindSafe for ReindexDbBuilder
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