Module diesel::query_builder
[−]
[src]
Contains traits responsible for the actual construction of SQL statements
Modules
debug | |
insert_statement | |
update_statement |
Structs
IncompleteInsertStatement |
The structure returned by |
IncompleteUpdateStatement |
The type returned by |
Traits
AsChangeset |
Types which can be passed to
|
AsQuery |
Types that can be converted into a complete, typed SQL query. This is used
internally to automatically add the right select clause when none is
specified, or to automatically add |
Changeset |
Apps should not need to concern themselves with this trait. |
Query |
A complete SQL query with a return type. This can be a select statement, or
a command such as |
QueryBuilder |
Apps should not need to concern themselves with this trait. |
QueryFragment |
An untyped fragment of SQL. This may be a complete SQL command (such as
an update statement without a |
UpdateTarget |
You should not need to implement this trait.
|
Functions
delete |
Creates a delete statement. Will delete the records in the given set. Because this function has a very generic name, it is not exported by default. |
insert |
Creates an insert statement. Will add the given data to a table. This function is not exported by default. As with other commands, the resulting query can return the inserted rows if you choose. |
update |
Creates an update statement. Helpers for updating a single row can be
generated by
|
Type Definitions
BuildQueryResult |