Enum mentat_query_sql::ColumnOrExpression
[−]
[src]
pub enum ColumnOrExpression { Column(QualifiedAlias), ExistingColumn(Name), Entid(Entid), Integer(i32), Long(i64), Value(TypedValue), NullableAggregate(Box<Expression>, ValueType), Expression(Box<Expression>, ValueType), }
One of the things that can appear in a projection or a constraint. Note that we use
TypedValue
here; it's not pure SQL, but it avoids us having to concern ourselves at this
point with the translation between a TypedValue
and the storage-layer representation.
Eventually we might allow different translations by providing a different QueryBuilder
implementation for each storage backend. Passing TypedValue
s here allows for that.
Variants
Column(QualifiedAlias)
ExistingColumn(Name)
Entid(Entid)
Integer(i32)
Long(i64)
Value(TypedValue)
NullableAggregate(Box<Expression>, ValueType)
Expression(Box<Expression>, ValueType)
Trait Implementations
impl From<QueryValue> for ColumnOrExpression
[src]
impl From<QueryValue> for ColumnOrExpression
QueryValue
and ColumnOrExpression
are almost identical… merge somehow?
fn from(v: QueryValue) -> Self
[src]
fn from(v: QueryValue) -> Self
Performs the conversion.
impl QueryFragment for ColumnOrExpression
[src]
impl QueryFragment for ColumnOrExpression
fn push_sql(&self, out: &mut QueryBuilder) -> BuildQueryResult
[src]
fn push_sql(&self, out: &mut QueryBuilder) -> BuildQueryResult
Auto Trait Implementations
impl !Send for ColumnOrExpression
impl !Send for ColumnOrExpression
impl !Sync for ColumnOrExpression
impl !Sync for ColumnOrExpression