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

pub trait QueryFragment<DB: Backend> {
    fn walk_ast(&self, pass: AstPass<DB>) -> QueryResult<()>;

    fn to_sql(&self, out: &mut DB::QueryBuilder) -> QueryResult<()> { ... }
fn collect_binds(
        &self,
        out: &mut DB::BindCollector,
        metadata_lookup: &DB::MetadataLookup
    ) -> QueryResult<()> { ... }
fn is_safe_to_cache_prepared(&self) -> QueryResult<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

Provided Methods

Trait Implementations

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

Implementors