[][src]Enum quaint::ast::DatabaseValue

pub enum DatabaseValue<'a> {
    Parameterized(ParameterizedValue<'a>),
    Column(Box<Column<'a>>),
    Row(Row<'a>),
    Select(Box<Select<'a>>),
    Function(Function<'a>),
    Asterisk(Option<Box<Table<'a>>>),
    Op(Box<SqlOp<'a>>),
}

A value we can compare and use in database queries.

Variants

Parameterized(ParameterizedValue<'a>)

Anything that we must parameterize before querying

Column(Box<Column<'a>>)

A database column

Row(Row<'a>)

Data in a row form, e.g. (1, 2, 3)

Select(Box<Select<'a>>)

A nested SELECT statement

Function(Function<'a>)

A database function call

Asterisk(Option<Box<Table<'a>>>)

A qualified asterisk to a table

Op(Box<SqlOp<'a>>)

An operation: sum, sub, mul or div.

Trait Implementations

impl<'a> Add<DatabaseValue<'a>> for DatabaseValue<'a>[src]

type Output = DatabaseValue<'a>

The resulting type after applying the + operator.

impl<'a> Clone for DatabaseValue<'a>[src]

impl<'a> Comparable<'a> for DatabaseValue<'a>[src]

impl<'a> Debug for DatabaseValue<'a>[src]

impl<'a> Div<DatabaseValue<'a>> for DatabaseValue<'a>[src]

type Output = DatabaseValue<'a>

The resulting type after applying the / operator.

impl<'a> From<AggregateToString<'a>> for DatabaseValue<'a>[src]

impl<'a> From<Column<'a>> for DatabaseValue<'a>[src]

impl<'a> From<Count<'a>> for DatabaseValue<'a>[src]

impl<'a> From<Function<'a>> for DatabaseValue<'a>[src]

impl<'a> From<Row<'a>> for DatabaseValue<'a>[src]

impl<'a> From<RowNumber<'a>> for DatabaseValue<'a>[src]

impl<'a> From<Select<'a>> for DatabaseValue<'a>[src]

impl<'a> From<SqlOp<'a>> for DatabaseValue<'a>[src]

impl<'a, T> From<T> for DatabaseValue<'a> where
    T: Into<ParameterizedValue<'a>>, 
[src]

impl<'a, T> From<Vec<T>> for DatabaseValue<'a> where
    T: Into<DatabaseValue<'a>>, 
[src]

impl<'a> Mul<DatabaseValue<'a>> for DatabaseValue<'a>[src]

type Output = DatabaseValue<'a>

The resulting type after applying the * operator.

impl<'a> PartialEq<DatabaseValue<'a>> for DatabaseValue<'a>[src]

impl<'a> Rem<DatabaseValue<'a>> for DatabaseValue<'a>[src]

type Output = DatabaseValue<'a>

The resulting type after applying the % operator.

impl<'a> StructuralPartialEq for DatabaseValue<'a>[src]

impl<'a> Sub<DatabaseValue<'a>> for DatabaseValue<'a>[src]

type Output = DatabaseValue<'a>

The resulting type after applying the - operator.

Auto Trait Implementations

impl<'a> RefUnwindSafe for DatabaseValue<'a>

impl<'a> Send for DatabaseValue<'a>

impl<'a> Sync for DatabaseValue<'a>

impl<'a> Unpin for DatabaseValue<'a>

impl<'a> UnwindSafe for DatabaseValue<'a>

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, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,