pub enum InsertColumnMatching {
ByName,
ByPosition,
}Expand description
DuckDB column-matching mode on INSERT: BY NAME or BY POSITION.
Written between the insert target and the source (INSERT INTO t BY NAME SELECT …).
Gated by MutationSyntax::insert_column_matching.
Engine rule (1.5.4): BY NAME cannot combine with an explicit column list and only
applies to a SELECT source — the parser rejects the column-list combination; VALUES
with BY NAME is left for the binder.
Variants§
ByName
BY NAME — match source columns to targets by name (DuckDB).
ByPosition
BY POSITION — match source columns to targets by position (the default).
Trait Implementations§
Source§impl Clone for InsertColumnMatching
impl Clone for InsertColumnMatching
Source§fn clone(&self) -> InsertColumnMatching
fn clone(&self) -> InsertColumnMatching
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 InsertColumnMatching
Source§impl Debug for InsertColumnMatching
impl Debug for InsertColumnMatching
Source§impl<'de> Deserialize<'de> for InsertColumnMatching
impl<'de> Deserialize<'de> for InsertColumnMatching
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 InsertColumnMatching
Source§impl Hash for InsertColumnMatching
impl Hash for InsertColumnMatching
Source§impl PartialEq for InsertColumnMatching
impl PartialEq for InsertColumnMatching
Source§impl Serialize for InsertColumnMatching
impl Serialize for InsertColumnMatching
impl StructuralPartialEq for InsertColumnMatching
Auto Trait Implementations§
impl Freeze for InsertColumnMatching
impl RefUnwindSafe for InsertColumnMatching
impl Send for InsertColumnMatching
impl Sync for InsertColumnMatching
impl Unpin for InsertColumnMatching
impl UnsafeUnpin for InsertColumnMatching
impl UnwindSafe for InsertColumnMatching
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