Struct diesel::expression::sql_literal::SqlLiteral [] [src]

pub struct SqlLiteral<ST> {
    // some fields omitted
}

Available for when you truly cannot represent something using the expression DSL. You will need to provide the type of the expression, in addition to the SQL. The compiler will be unable to verify the correctness of this type.

Methods

impl<ST> SqlLiteral<ST>
[src]

fn new(sql: String) -> Self

Trait Implementations

impl<ST: Clone> Clone for SqlLiteral<ST>
[src]

fn clone(&self) -> SqlLiteral<ST>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<ST: Debug> Debug for SqlLiteral<ST>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<ST> Expression for SqlLiteral<ST>
[src]

type SqlType = ST

impl<ST, DB> QueryFragment<DB> for SqlLiteral<ST> where DB: Backend + HasSqlType<ST>
[src]

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

fn collect_binds(&self, _out: &mut DB::BindCollector) -> QueryResult<()>

fn is_safe_to_cache_prepared(&self) -> bool

impl<ST> QueryId for SqlLiteral<ST>
[src]

impl<ST> Query for SqlLiteral<ST>
[src]

type SqlType = ST

impl<QS, ST> SelectableExpression<QS> for SqlLiteral<ST>
[src]

impl<ST> NonAggregate for SqlLiteral<ST>
[src]