[][src]Struct postgres_parser::sys::OnConflictExpr

#[repr(C)]pub struct OnConflictExpr {
    pub type_: NodeTag,
    pub action: OnConflictAction,
    pub arbiterElems: *mut List,
    pub arbiterWhere: *mut Node,
    pub constraint: Oid,
    pub onConflictSet: *mut List,
    pub onConflictWhere: *mut Node,
    pub exclRelIndex: c_int,
    pub exclRelTlist: *mut List,
}

OnConflictExpr represents an ON CONFLICT DO ... expression

The optimizer requires a list of inference elements, and optionally a WHERE clause to infer a unique index. The unique index (or, occasionally, indexes) inferred are used to arbitrate whether or not the alternative ON CONFLICT path is taken.

Fields

type_: NodeTagaction: OnConflictActionarbiterElems: *mut List

Arbiter

arbiterWhere: *mut Node

unique index arbiter list (of InferenceElem's)

constraint: Oid

unique index arbiter WHERE clause

onConflictSet: *mut List

ON CONFLICT UPDATE

onConflictWhere: *mut Node

List of ON CONFLICT SET TargetEntrys

exclRelIndex: c_int

qualifiers to restrict UPDATE to

exclRelTlist: *mut List

RT index of 'excluded' relation

Trait Implementations

impl Debug for OnConflictExpr[src]

impl Default for OnConflictExpr[src]

impl Eq for OnConflictExpr[src]

impl Hash for OnConflictExpr[src]

impl PartialEq<OnConflictExpr> for OnConflictExpr[src]

impl StructuralEq for OnConflictExpr[src]

impl StructuralPartialEq for OnConflictExpr[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.