Trait diesel::expression::Expression [] [src]

pub trait Expression {
    type SqlType: NativeSqlType;
    fn to_sql(&self, out: &mut QueryBuilder) -> BuildQueryResult;
}

Represents a typed fragment of SQL. Apps should not need to implement this type directly, but it may be common to use this as type boundaries. Libraries should consider using infix_predicate! or postfix_predicate! instead of implementing this directly.

Associated Types

Required Methods

fn to_sql(&self, out: &mut QueryBuilder) -> BuildQueryResult

Implementors