pub enum LoadDataDuplicate {
Replace,
Ignore,
}Expand description
The optional duplicate-key handling of a LoadDataStatement (mysql sql_yacc.yy
opt_duplicate / duplicate). The default (no keyword) errors on a duplicate and is
modelled as None, so this enum carries only the two written spellings. REPLACE and
IGNORE are mutually exclusive — writing both is ER_PARSE_ERROR (engine-measured).
Variants§
Replace
REPLACE — replace existing rows that collide on a unique key.
Ignore
IGNORE — skip input rows that collide on a unique key.
Trait Implementations§
Source§impl Clone for LoadDataDuplicate
impl Clone for LoadDataDuplicate
Source§fn clone(&self) -> LoadDataDuplicate
fn clone(&self) -> LoadDataDuplicate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LoadDataDuplicate
Source§impl Debug for LoadDataDuplicate
impl Debug for LoadDataDuplicate
Source§impl<'de> Deserialize<'de> for LoadDataDuplicate
impl<'de> Deserialize<'de> for LoadDataDuplicate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LoadDataDuplicate
Source§impl Hash for LoadDataDuplicate
impl Hash for LoadDataDuplicate
Source§impl PartialEq for LoadDataDuplicate
impl PartialEq for LoadDataDuplicate
Source§impl Render for LoadDataDuplicate
impl Render for LoadDataDuplicate
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for LoadDataDuplicate
impl Serialize for LoadDataDuplicate
impl StructuralPartialEq for LoadDataDuplicate
Auto Trait Implementations§
impl Freeze for LoadDataDuplicate
impl RefUnwindSafe for LoadDataDuplicate
impl Send for LoadDataDuplicate
impl Sync for LoadDataDuplicate
impl Unpin for LoadDataDuplicate
impl UnsafeUnpin for LoadDataDuplicate
impl UnwindSafe for LoadDataDuplicate
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