pub struct DropDbBuilder { /* private fields */ }Expand description
dropdb removes a PostgreSQL database.
Implementations§
Source§impl DropDbBuilder
 
impl DropDbBuilder
Sourcepub fn new() -> Self
 
pub fn new() -> Self
Create a new DropDbBuilder
Sourcepub fn from(settings: &dyn Settings) -> Self
 
pub fn from(settings: &dyn Settings) -> Self
Create a new DropDbBuilder 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 interactive(self) -> Self
 
pub fn interactive(self) -> Self
Prompt before deleting anything
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 DropDbBuilder
 
impl Clone for DropDbBuilder
Source§fn clone(&self) -> DropDbBuilder
 
fn clone(&self) -> DropDbBuilder
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 DropDbBuilder
 
impl CommandBuilder for DropDbBuilder
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 DropDbBuilder
 
impl Debug for DropDbBuilder
Source§impl Default for DropDbBuilder
 
impl Default for DropDbBuilder
Source§fn default() -> DropDbBuilder
 
fn default() -> DropDbBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DropDbBuilder
impl RefUnwindSafe for DropDbBuilder
impl Send for DropDbBuilder
impl Sync for DropDbBuilder
impl Unpin for DropDbBuilder
impl UnwindSafe for DropDbBuilder
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