[][src]Enum postgres_parser::sys::SQLValueFunctionOp

#[repr(u32)]pub enum SQLValueFunctionOp {
    SVFOP_CURRENT_DATE,
    SVFOP_CURRENT_TIME,
    SVFOP_CURRENT_TIME_N,
    SVFOP_CURRENT_TIMESTAMP,
    SVFOP_CURRENT_TIMESTAMP_N,
    SVFOP_LOCALTIME,
    SVFOP_LOCALTIME_N,
    SVFOP_LOCALTIMESTAMP,
    SVFOP_LOCALTIMESTAMP_N,
    SVFOP_CURRENT_ROLE,
    SVFOP_CURRENT_USER,
    SVFOP_USER,
    SVFOP_SESSION_USER,
    SVFOP_CURRENT_CATALOG,
    SVFOP_CURRENT_SCHEMA,
}

SQLValueFunction parameterless functions with special grammar productions

The SQL standard categorizes some of these as and others as . We call 'em SQLValueFunctions for lack of a better term. We store type and typmod of the result so that some code doesn't need to know each function individually, and because we would need to store typmod anyway for some of the datetime functions. Note that currently, all variants return noncollating datatypes, so we do not need a collation field; also, all these functions are stable.

Variants

SVFOP_CURRENT_DATE
SVFOP_CURRENT_TIME
SVFOP_CURRENT_TIME_N
SVFOP_CURRENT_TIMESTAMP
SVFOP_CURRENT_TIMESTAMP_N
SVFOP_LOCALTIME
SVFOP_LOCALTIME_N
SVFOP_LOCALTIMESTAMP
SVFOP_LOCALTIMESTAMP_N
SVFOP_CURRENT_ROLE
SVFOP_CURRENT_USER
SVFOP_USER
SVFOP_SESSION_USER
SVFOP_CURRENT_CATALOG
SVFOP_CURRENT_SCHEMA

Trait Implementations

impl Clone for SQLValueFunctionOp[src]

impl Copy for SQLValueFunctionOp[src]

impl Debug for SQLValueFunctionOp[src]

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

impl Eq for SQLValueFunctionOp[src]

impl Hash for SQLValueFunctionOp[src]

impl PartialEq<SQLValueFunctionOp> for SQLValueFunctionOp[src]

impl Serialize for SQLValueFunctionOp[src]

impl StructuralEq for SQLValueFunctionOp[src]

impl StructuralPartialEq for SQLValueFunctionOp[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.