pub struct Merge {
pub merge_token: AttachedToken,
pub into: bool,
pub table: TableFactor,
pub source: TableFactor,
pub on: Box<Expr>,
pub clauses: Vec<MergeClause>,
pub output: Option<OutputClause>,
}Expand description
A MERGE statement.
Fields§
§merge_token: AttachedTokenThe MERGE token that starts the statement.
into: booloptional INTO keyword
table: TableFactorSpecifies the table to merge
source: TableFactorSpecifies the table or subquery to join with the target table
on: Box<Expr>Specifies the expression on which to join the target table and source
clauses: Vec<MergeClause>Specifies the actions to perform when values match or do not match.
output: Option<OutputClause>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Merge
impl<'de> Deserialize<'de> for Merge
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
Source§impl Ord for Merge
impl Ord for Merge
Source§impl PartialOrd for Merge
impl PartialOrd for Merge
Source§impl VisitMut for Merge
impl VisitMut for Merge
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for Merge
impl StructuralPartialEq for Merge
Auto Trait Implementations§
impl Freeze for Merge
impl RefUnwindSafe for Merge
impl Send for Merge
impl Sync for Merge
impl Unpin for Merge
impl UnwindSafe for Merge
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