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>

fn new(sql: String) -> Self

Trait Implementations

impl<ST> Expression for SqlLiteral<ST>

type SqlType = ST

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

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>

type QueryId = ()

fn has_static_query_id() -> bool

fn query_id() -> Option<TypeId>

impl<ST> Query for SqlLiteral<ST>

type SqlType = ST

impl<QS, ST> SelectableExpression<QS> for SqlLiteral<ST>

impl<ST> NonAggregate for SqlLiteral<ST>

Derived Implementations

impl<ST: Clone> Clone for SqlLiteral<ST>

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

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

impl<ST: Debug> Debug for SqlLiteral<ST>

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