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>>),
}Expand description
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§
Source§impl<'a> Add for DatabaseValue<'a>
 
impl<'a> Add for DatabaseValue<'a>
Source§impl<'a> Clone for DatabaseValue<'a>
 
impl<'a> Clone for DatabaseValue<'a>
Source§fn clone(&self) -> DatabaseValue<'a>
 
fn clone(&self) -> DatabaseValue<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl<'a> Comparable<'a> for DatabaseValue<'a>
 
impl<'a> Comparable<'a> for DatabaseValue<'a>
Source§fn equals<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
 
fn equals<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
Tests if both sides are the same value. Read more
Source§fn not_equals<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
 
fn not_equals<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
Tests if both sides are not the same value. Read more
Source§fn less_than<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
 
fn less_than<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
Tests if the left side is smaller than the right side. Read more
Source§fn less_than_or_equals<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
 
fn less_than_or_equals<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
Tests if the left side is smaller than the right side or the same. Read more
Source§fn greater_than<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
 
fn greater_than<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
Tests if the left side is bigger than the right side. Read more
Source§fn greater_than_or_equals<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
 
fn greater_than_or_equals<T>(self, comparison: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
Tests if the left side is bigger than the right side or the same. Read more
Source§fn in_selection<T>(self, selection: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
 
fn in_selection<T>(self, selection: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
Tests if the left side is included in the right side collection. Read more
Source§fn not_in_selection<T>(self, selection: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
 
fn not_in_selection<T>(self, selection: T) -> Compare<'a>where
    T: Into<DatabaseValue<'a>>,
Tests if the left side is not included in the right side collection. Read more
Source§fn like<T>(self, pattern: T) -> Compare<'a>
 
fn like<T>(self, pattern: T) -> Compare<'a>
Tests if the left side includes the right side string. Read more
Source§fn not_like<T>(self, pattern: T) -> Compare<'a>
 
fn not_like<T>(self, pattern: T) -> Compare<'a>
Tests if the left side does not include the right side string. Read more
Source§fn begins_with<T>(self, pattern: T) -> Compare<'a>
 
fn begins_with<T>(self, pattern: T) -> Compare<'a>
Tests if the left side starts with the right side string. Read more
Source§fn not_begins_with<T>(self, pattern: T) -> Compare<'a>
 
fn not_begins_with<T>(self, pattern: T) -> Compare<'a>
Tests if the left side doesn’t start with the right side string. Read more
Source§fn ends_into<T>(self, pattern: T) -> Compare<'a>
 
fn ends_into<T>(self, pattern: T) -> Compare<'a>
Tests if the left side ends into the right side string. Read more
Source§fn not_ends_into<T>(self, pattern: T) -> Compare<'a>
 
fn not_ends_into<T>(self, pattern: T) -> Compare<'a>
Tests if the left side does not end into the right side string. Read more
Source§fn is_not_null(self) -> Compare<'a>
 
fn is_not_null(self) -> Compare<'a>
Tests if the left side is not 
NULL. Read moreSource§fn between<T, V>(self, left: T, right: V) -> Compare<'a>
 
fn between<T, V>(self, left: T, right: V) -> Compare<'a>
Tests if the value is between two given values. Read more
Source§fn not_between<T, V>(self, left: T, right: V) -> Compare<'a>
 
fn not_between<T, V>(self, left: T, right: V) -> Compare<'a>
Tests if the value is not between two given values. Read more
Source§impl<'a> Debug for DatabaseValue<'a>
 
impl<'a> Debug for DatabaseValue<'a>
Source§impl<'a> Div for DatabaseValue<'a>
 
impl<'a> Div for DatabaseValue<'a>
Source§impl<'a> From<AggregateToString<'a>> for DatabaseValue<'a>
 
impl<'a> From<AggregateToString<'a>> for DatabaseValue<'a>
Source§fn from(f: AggregateToString<'a>) -> Self
 
fn from(f: AggregateToString<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Column<'a>> for DatabaseValue<'a>
 
impl<'a> From<Column<'a>> for DatabaseValue<'a>
Source§impl<'a> From<Count<'a>> for DatabaseValue<'a>
 
impl<'a> From<Count<'a>> for DatabaseValue<'a>
Source§impl<'a> From<Function<'a>> for DatabaseValue<'a>
 
impl<'a> From<Function<'a>> for DatabaseValue<'a>
Source§impl<'a> From<Row<'a>> for DatabaseValue<'a>
 
impl<'a> From<Row<'a>> for DatabaseValue<'a>
Source§impl<'a> From<RowNumber<'a>> for DatabaseValue<'a>
 
impl<'a> From<RowNumber<'a>> for DatabaseValue<'a>
Source§impl<'a> From<Select<'a>> for DatabaseValue<'a>
 
impl<'a> From<Select<'a>> for DatabaseValue<'a>
Source§fn from(sel: Select<'a>) -> DatabaseValue<'a>
 
fn from(sel: Select<'a>) -> DatabaseValue<'a>
Converts to this type from the input type.
Source§impl<'a> From<SqlOp<'a>> for DatabaseValue<'a>
 
impl<'a> From<SqlOp<'a>> for DatabaseValue<'a>
Source§impl<'a, T> From<T> for DatabaseValue<'a>where
    T: Into<ParameterizedValue<'a>>,
 
impl<'a, T> From<T> for DatabaseValue<'a>where
    T: Into<ParameterizedValue<'a>>,
Source§impl<'a, T> From<Vec<T>> for DatabaseValue<'a>where
    T: Into<DatabaseValue<'a>>,
 
impl<'a, T> From<Vec<T>> for DatabaseValue<'a>where
    T: Into<DatabaseValue<'a>>,
Source§impl<'a> Mul for DatabaseValue<'a>
 
impl<'a> Mul for DatabaseValue<'a>
Source§impl<'a> PartialEq for DatabaseValue<'a>
 
impl<'a> PartialEq for DatabaseValue<'a>
Source§impl<'a> Rem for DatabaseValue<'a>
 
impl<'a> Rem for DatabaseValue<'a>
Source§impl<'a> Sub for DatabaseValue<'a>
 
impl<'a> Sub for DatabaseValue<'a>
impl<'a> StructuralPartialEq for DatabaseValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for DatabaseValue<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more