Type Alias diesel::query_builder::InsertOrIgnoreStatement

source ·
pub type InsertOrIgnoreStatement<T, U, Ret = NoReturningClause> = InsertStatement<T, U, InsertOrIgnore, Ret>;
Expand description

Represents a complete INSERT OR IGNORE statement.

Aliased Type§

struct InsertOrIgnoreStatement<T, U, Ret = NoReturningClause> {
    pub operator: InsertOrIgnore,
    pub target: T,
    pub records: U,
    pub returning: Ret,
    /* private fields */
}

Fields§

§operator: InsertOrIgnore

The operator used by this InsertStatement

Corresponds to either Insert or Replace

§target: T

The table we are inserting into

§records: U

The data which should be inserted

§returning: Ret

An optional returning clause