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

pub trait QueryFragment {
    fn to_sql(&self, out: &mut QueryBuilder) -> BuildQueryResult;
}

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

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

Implementors