[][src]Struct postgres_parser::nodes::OnConflictExpr

pub struct OnConflictExpr {
    pub action: OnConflictAction,
    pub arbiterElems: Option<Vec<Node>>,
    pub arbiterWhere: Option<Box<Node>>,
    pub constraint: Oid,
    pub onConflictSet: Option<Vec<Node>>,
    pub onConflictWhere: Option<Box<Node>>,
    pub exclRelIndex: i32,
    pub exclRelTlist: Option<Vec<Node>>,
}

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

action: OnConflictActionarbiterElems: Option<Vec<Node>>arbiterWhere: Option<Box<Node>>constraint: OidonConflictSet: Option<Vec<Node>>onConflictWhere: Option<Box<Node>>exclRelIndex: i32exclRelTlist: Option<Vec<Node>>

Trait Implementations

impl Debug for OnConflictExpr[src]

impl<'de> Deserialize<'de> for OnConflictExpr[src]

impl Eq for OnConflictExpr[src]

impl PartialEq<OnConflictExpr> for OnConflictExpr[src]

impl Serialize 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.