pub enum CheckTableOption {
ForUpgrade,
Quick,
Fast,
Medium,
Extended,
Changed,
}Expand description
CHECK TABLE statement options (MySQL-only)
This enum represents the check option for the CHECK TABLE statement. CHECK TABLE checks a table or tables for errors.
§Examples
use reinhardt_query::types::maintenance::CheckTableOption;
// Default check (MEDIUM)
let opt = CheckTableOption::default();
// Quick check
let opt = CheckTableOption::Quick;
// Extended check
let opt = CheckTableOption::Extended;Variants§
ForUpgrade
Check for version compatibility
Quick
Quick check, skip scanning rows for incorrect links
Fast
Fast check, check only tables that haven’t been closed properly
Medium
Medium check (default), scan rows to verify deleted links are valid
Extended
Extended check, do a full key lookup for all keys
Changed
Check only tables that have been changed since last check or not closed properly
Trait Implementations§
Source§impl Clone for CheckTableOption
impl Clone for CheckTableOption
Source§fn clone(&self) -> CheckTableOption
fn clone(&self) -> CheckTableOption
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 CheckTableOption
impl Debug for CheckTableOption
Source§impl Default for CheckTableOption
impl Default for CheckTableOption
Source§fn default() -> CheckTableOption
fn default() -> CheckTableOption
Returns the “default value” for a type. Read more
Source§impl PartialEq for CheckTableOption
impl PartialEq for CheckTableOption
impl Copy for CheckTableOption
impl Eq for CheckTableOption
impl StructuralPartialEq for CheckTableOption
Auto Trait Implementations§
impl Freeze for CheckTableOption
impl RefUnwindSafe for CheckTableOption
impl Send for CheckTableOption
impl Sync for CheckTableOption
impl Unpin for CheckTableOption
impl UnsafeUnpin for CheckTableOption
impl UnwindSafe for CheckTableOption
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