pub struct RepairTableOption { /* private fields */ }Expand description
REPAIR TABLE statement options (MySQL-only)
This struct represents options for the REPAIR TABLE statement. REPAIR TABLE repairs a possibly corrupted table.
§Examples
use reinhardt_query::types::maintenance::RepairTableOption;
// Basic REPAIR TABLE
let opt = RepairTableOption::new();
// REPAIR TABLE with QUICK option
let opt = RepairTableOption::new().quick(true);
// REPAIR TABLE with EXTENDED option
let opt = RepairTableOption::new().extended(true);Implementations§
Source§impl RepairTableOption
impl RepairTableOption
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new REPAIR TABLE option
§Examples
use reinhardt_query::types::maintenance::RepairTableOption;
let opt = RepairTableOption::new();Sourcepub fn no_write_to_binlog(self, no_write_to_binlog: bool) -> Self
pub fn no_write_to_binlog(self, no_write_to_binlog: bool) -> Self
Set NO_WRITE_TO_BINLOG option
Suppresses binary logging for this operation.
§Examples
use reinhardt_query::types::maintenance::RepairTableOption;
let opt = RepairTableOption::new().no_write_to_binlog(true);Sourcepub fn local(self, local: bool) -> Self
pub fn local(self, local: bool) -> Self
Set LOCAL option
Suppresses binary logging for this operation (same as NO_WRITE_TO_BINLOG).
§Examples
use reinhardt_query::types::maintenance::RepairTableOption;
let opt = RepairTableOption::new().local(true);Sourcepub fn quick(self, quick: bool) -> Self
pub fn quick(self, quick: bool) -> Self
Set QUICK option
Tries to repair only the index file, not the data file.
§Examples
use reinhardt_query::types::maintenance::RepairTableOption;
let opt = RepairTableOption::new().quick(true);Trait Implementations§
Source§impl Clone for RepairTableOption
impl Clone for RepairTableOption
Source§fn clone(&self) -> RepairTableOption
fn clone(&self) -> RepairTableOption
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 Debug for RepairTableOption
impl Debug for RepairTableOption
Source§impl Default for RepairTableOption
impl Default for RepairTableOption
Source§fn default() -> RepairTableOption
fn default() -> RepairTableOption
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RepairTableOption
impl RefUnwindSafe for RepairTableOption
impl Send for RepairTableOption
impl Sync for RepairTableOption
impl Unpin for RepairTableOption
impl UnsafeUnpin for RepairTableOption
impl UnwindSafe for RepairTableOption
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