Trait diesel::query_builder::QueryFragment [] [src]

pub trait QueryFragment<DB: Backend> {
    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;
}

An untyped fragment of SQL. This may be a complete SQL command (such as an update statement without a RETURNING clause), or a subsection (such as our internal types used to represent a WHERE clause). All methods on Connection that execute a query require this trait to be implemented.

Required Methods

Trait Implementations

impl<DB> QueryId for QueryFragment<DB>
[src]

Implementors