Skip to main content

DoNothing

Type Alias DoNothing 

Source
pub type DoNothing<I> = InsertStatement<<I as OnConflictHelper>::Table, OnConflictValues<<I as OnConflictHelper>::Values, <I as OnConflictHelper>::Target, DoNothing<<I as OnConflictHelper>::Table>>, <I as OnConflictHelper>::Op, <I as OnConflictHelper>::Ret>;
Expand description

Represents the return type of IncompleteOnConflict::do_nothing()

Aliased Type§

pub struct DoNothing<I> {
    pub operator: <I as OnConflictHelper>::Op,
    pub target: <I as OnConflictHelper>::Table,
    pub records: OnConflictValues<<I as OnConflictHelper>::Values, <I as OnConflictHelper>::Target, DoNothing<<I as OnConflictHelper>::Table>>,
    pub returning: <I as OnConflictHelper>::Ret,
    /* private fields */
}

Fields§

§operator: <I as OnConflictHelper>::Op

The operator used by this InsertStatement

Corresponds to either Insert or Replace

§target: <I as OnConflictHelper>::Table

The table we are inserting into

§records: OnConflictValues<<I as OnConflictHelper>::Values, <I as OnConflictHelper>::Target, DoNothing<<I as OnConflictHelper>::Table>>

The data which should be inserted

§returning: <I as OnConflictHelper>::Ret

An optional returning clause