Skip to main content

OnConflictDoNothing

Type Alias OnConflictDoNothing 

Source
pub type OnConflictDoNothing<I> = InsertStatement<<I as InsertAutoTypeHelper>::Table, OnConflictValues<<<I as InsertAutoTypeHelper>::Values as IntoConflictValueClause>::ValueClause, NoConflictTarget, DoNothing<<I as InsertAutoTypeHelper>::Table>>, <I as InsertAutoTypeHelper>::Op, <I as InsertAutoTypeHelper>::Ret>;
Expand description

Represents the return type of InsertStatement::on_conflict_do_nothing

Aliased Type§

pub struct OnConflictDoNothing<I> {
    pub operator: <I as InsertAutoTypeHelper>::Op,
    pub target: <I as InsertAutoTypeHelper>::Table,
    pub records: OnConflictValues<<<I as InsertAutoTypeHelper>::Values as IntoConflictValueClause>::ValueClause, NoConflictTarget, DoNothing<<I as InsertAutoTypeHelper>::Table>>,
    pub returning: <I as InsertAutoTypeHelper>::Ret,
    /* private fields */
}

Fields§

§operator: <I as InsertAutoTypeHelper>::Op

The operator used by this InsertStatement

Corresponds to either Insert or Replace

§target: <I as InsertAutoTypeHelper>::Table

The table we are inserting into

§records: OnConflictValues<<<I as InsertAutoTypeHelper>::Values as IntoConflictValueClause>::ValueClause, NoConflictTarget, DoNothing<<I as InsertAutoTypeHelper>::Table>>

The data which should be inserted

§returning: <I as InsertAutoTypeHelper>::Ret

An optional returning clause