pub enum MergeMatchKind {
Matched,
NotMatched {
by_target: bool,
},
NotMatchedBySource,
}Expand description
Which WHEN form a MergeWhen is.
Variants§
Matched
WHEN MATCHED — the source row found a target row.
NotMatched
WHEN NOT MATCHED [ BY TARGET ] — the source row found no target row.
BY TARGET spells out the default; it exists (PostgreSQL 17+) to read
well next to BY SOURCE, and is written only when asked for —
see the OFFSET/FETCH entry in docs/sql-rendering.md for the rule.
NotMatchedBySource
WHEN NOT MATCHED BY SOURCE — the target row has no source row
(PostgreSQL 17+).
Implementations§
Trait Implementations§
Source§impl Clone for MergeMatchKind
impl Clone for MergeMatchKind
Source§fn clone(&self) -> MergeMatchKind
fn clone(&self) -> MergeMatchKind
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 MergeMatchKind
Source§impl Debug for MergeMatchKind
impl Debug for MergeMatchKind
impl Eq for MergeMatchKind
Source§impl PartialEq for MergeMatchKind
impl PartialEq for MergeMatchKind
impl StructuralPartialEq for MergeMatchKind
Auto Trait Implementations§
impl Freeze for MergeMatchKind
impl RefUnwindSafe for MergeMatchKind
impl Send for MergeMatchKind
impl Sync for MergeMatchKind
impl Unpin for MergeMatchKind
impl UnsafeUnpin for MergeMatchKind
impl UnwindSafe for MergeMatchKind
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