[−][src]Module diesel::query_builder
Contains traits responsible for the actual construction of SQL statements
The types in this module are part of Diesel's public API, but are generally only useful for implementing Diesel plugins. Applications should generally not need to care about the types inside of this module.
Re-exports
pub use self::bind_collector::BindCollector; |
Modules
bind_collector | Types related to managing bind parameters during query construction. |
Structs
AstPass | The primary type used when walking a Diesel AST during query execution. |
BoxedLimitOffsetClause | A boxed variant of |
BoxedSqlQuery | See |
DebugQuery | A struct that implements |
DeleteStatement | Represents a SQL |
IncompleteInsertStatement | The structure returned by |
InsertStatement | A fully constructed insert statement. |
LimitClause | A query node representing a limit clause |
LimitOffsetClause | A helper query node that contains both limit and offset clauses |
NoLimitClause | A query node indicating the absence of a limit clause |
NoOffsetClause | A query node indicating the absence of an offset clause |
OffsetClause | A query node representing an offset clause |
SqlQuery | The return value of |
UpdateStatement | Represents a complete |
Traits
AsChangeset | Types which can be passed to
|
AsQuery | Types that can be converted into a complete, typed SQL query. |
DecoratableTarget | Interface to add information to conflict targets. Designed to be open for further additions to conflict targets like constraints |
IntoBoxedClause | A trait used to construct type erased boxed variant of the current query node |
IntoBoxedSelectClause | An internal helper trait to convert different select clauses into their boxed counter part. |
IntoUpdateTarget | |
Query | A complete SQL query with a return type. |
QueryBuilder | Constructs a SQL query from a Diesel AST. |
QueryFragment | An untyped fragment of SQL. |
QueryId | Uniquely identifies queries by their type for the purpose of prepared statement caching. |
SelectClauseExpression | Specialised variant of |
SelectClauseQueryFragment | Specialised variant of |
SelectQuery | Indicates that a type is a |
UndecoratedInsertRecord | Marker trait to indicate that no additional operations have been added to a record for insert. |
Functions
debug_query | Takes a query |
Type Definitions
BoxedDeleteStatement | A |
BoxedUpdateStatement | An |
BuildQueryResult | A specialized Result type used with the query builder. |
Derive Macros
AsChangeset | Implements |
QueryId | Implements |