[][src]Enum postgres_parser::sys::RowCompareType

#[repr(u32)]pub enum RowCompareType {
    ROWCOMPARE_LT,
    ROWCOMPARE_LE,
    ROWCOMPARE_EQ,
    ROWCOMPARE_GE,
    ROWCOMPARE_GT,
    ROWCOMPARE_NE,
}

RowCompareExpr rowwise comparison, such as (a, b) <= (1, 2)

We support row comparison for any operator that can be determined to act like =, <>, <, <=, >, or >= (we determine this by looking for the operator in btree opfamilies). Note that the same operator name might map to a different operator for each pair of row elements, since the element datatypes can vary.

A RowCompareExpr node is only generated for the < <= > >= cases; the = and <> cases are translated to simple AND or OR combinations of the pairwise comparisons. However, we include = and <> in the RowCompareType enum for the convenience of parser logic.

Variants

ROWCOMPARE_LT

Values of this enum are chosen to match btree strategy numbers

ROWCOMPARE_LE

BTLessStrategyNumber

ROWCOMPARE_EQ

BTLessEqualStrategyNumber

ROWCOMPARE_GE

BTEqualStrategyNumber

ROWCOMPARE_GT

BTGreaterEqualStrategyNumber

ROWCOMPARE_NE

BTGreaterStrategyNumber

Trait Implementations

impl Clone for RowCompareType[src]

impl Copy for RowCompareType[src]

impl Debug for RowCompareType[src]

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

impl Eq for RowCompareType[src]

impl Hash for RowCompareType[src]

impl PartialEq<RowCompareType> for RowCompareType[src]

impl Serialize for RowCompareType[src]

impl StructuralEq for RowCompareType[src]

impl StructuralPartialEq for RowCompareType[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.