pub struct MergeInsert {
pub columns: Vec<Cow<'static, str>>,
pub overriding: Option<Overriding>,
pub row: Vec<Expr>,
}Expand description
The merge_insert production:
INSERT [( column_name [, ...] )]
[ OVERRIDING { SYSTEM | USER } VALUE ]
{ VALUES ( { expression | DEFAULT } [, ...] ) | DEFAULT VALUES }One row only — unlike an INSERT statement’s VALUES list — and no source
query, which is why this is its own shape rather than a reuse of
Values. An empty row is DEFAULT VALUES,
the same reading InsertQuery gives an empty row
source.
Fields§
§columns: Vec<Cow<'static, str>>The insert column list. Quoted.
overriding: Option<Overriding>OVERRIDING … VALUE.
row: Vec<Expr>The single row’s cells. Empty means DEFAULT VALUES.
Trait Implementations§
Source§impl Clone for MergeInsert
impl Clone for MergeInsert
Source§fn clone(&self) -> MergeInsert
fn clone(&self) -> MergeInsert
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 moreSource§impl Debug for MergeInsert
impl Debug for MergeInsert
Source§impl Default for MergeInsert
impl Default for MergeInsert
Source§fn default() -> MergeInsert
fn default() -> MergeInsert
Returns the “default value” for a type. Read more
Source§impl Expression for MergeInsert
impl Expression for MergeInsert
Auto Trait Implementations§
impl !RefUnwindSafe for MergeInsert
impl !UnwindSafe for MergeInsert
impl Freeze for MergeInsert
impl Send for MergeInsert
impl Sync for MergeInsert
impl Unpin for MergeInsert
impl UnsafeUnpin for MergeInsert
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