pub struct MergeStatement {
pub target: String,
pub target_alias: Option<String>,
pub source: String,
pub source_alias: Option<String>,
pub on: Expr,
pub clauses: Vec<MergeWhenClause>,
}Expand description
v7.17.0 Phase 3.P0-42 — SQL:2003 / PG 15+ MERGE statement.
One WHEN clause fires per source row depending on whether the
on condition matched any target row(s); the executor walks
clauses in declaration order and fires the first whose
matched kind and optional condition are both satisfied.
Fields§
§target: String§target_alias: Option<String>§source: String§source_alias: Option<String>§on: Expr§clauses: Vec<MergeWhenClause>Trait Implementations§
Source§impl Clone for MergeStatement
impl Clone for MergeStatement
Source§fn clone(&self) -> MergeStatement
fn clone(&self) -> MergeStatement
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 MergeStatement
impl Debug for MergeStatement
Source§impl PartialEq for MergeStatement
impl PartialEq for MergeStatement
Source§fn eq(&self, other: &MergeStatement) -> bool
fn eq(&self, other: &MergeStatement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MergeStatement
Auto Trait Implementations§
impl Freeze for MergeStatement
impl RefUnwindSafe for MergeStatement
impl Send for MergeStatement
impl Sync for MergeStatement
impl Unpin for MergeStatement
impl UnsafeUnpin for MergeStatement
impl UnwindSafe for MergeStatement
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