[−][src]Trait diesel::query_builder::QueryBuilder
Constructs a SQL query from a Diesel AST.
The only reason you should ever need to interact with this trait is if you
are extending Diesel with support for a new backend. Plugins which extend
the query builder with new capabilities will interact with AstPass
instead.
Required methods
fn push_sql(&mut self, sql: &str)
Add sql
to the end of the query being constructed.
fn push_identifier(&mut self, identifier: &str) -> QueryResult<()>
Quote identifier
, and add it to the end of the query being
constructed.
fn push_bind_param(&mut self)
Add a placeholder for a bind parameter to the end of the query being constructed.
fn finish(self) -> String
Returns the constructed SQL query.
Implementors
impl QueryBuilder<Mysql> for MysqlQueryBuilder
[src]
impl QueryBuilder<Mysql> for MysqlQueryBuilder
fn push_sql(&mut self, sql: &str) | [src] |
fn push_identifier(&mut self, identifier: &str) -> QueryResult<()> | [src] |
fn push_bind_param(&mut self) | [src] |
fn finish(self) -> String | [src] |
impl QueryBuilder<Pg> for PgQueryBuilder
[src]
impl QueryBuilder<Pg> for PgQueryBuilder
fn push_sql(&mut self, sql: &str) | [src] |
fn push_identifier(&mut self, identifier: &str) -> QueryResult<()> | [src] |
fn push_bind_param(&mut self) | [src] |
fn finish(self) -> String | [src] |
impl QueryBuilder<Sqlite> for SqliteQueryBuilder
[src]
impl QueryBuilder<Sqlite> for SqliteQueryBuilder
fn push_sql(&mut self, sql: &str) | [src] |
fn push_identifier(&mut self, identifier: &str) -> QueryResult<()> | [src] |
fn push_bind_param(&mut self) | [src] |
fn finish(self) -> String | [src] |