Expand description
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.
Modules§
- Types related to managing bind parameters during query construction.
Structs§
- The primary type used when walking a Diesel AST during query execution.
- See
SqlQuery::into_boxed. - A SQL query variant with already collected bind data which can be moved
- A struct that implements
fmt::Displayandfmt::Debugto show the SQL representation of a query. - Represents a SQL
DELETEstatement. - The structure returned by
insert_into. - A fully constructed insert statement.
- The return value of
sql_query. - Represents a complete
UPDATEstatement.
Traits§
- Types which can be passed to
update.set. - Types that can be converted into a complete, typed SQL query.
- A type which manages serializing bind parameters during query construction.
- Interface to add information to conflict targets. Designed to be open for further additions to conflict targets like constraints
- A trait used to construct type erased boxed variant of the current query node
- A movable version of the bind collector which allows it to be extracted, moved and refilled.
- A complete SQL query with a return type.
- Constructs a SQL query from a Diesel AST.
- An untyped fragment of SQL.
- Uniquely identifies queries by their type for the purpose of prepared statement caching.
- Indicates that a type is a
SELECTstatement.
Functions§
- Takes a query
QueryFragmentexpression as an argument and returns a type that implementsfmt::Displayandfmt::Debugto show the query.
Type Aliases§
- A
DELETEstatement with a boxedWHEREclause - An
UPDATEstatement with a boxedWHEREclause. - A specialized Result type used with the query builder.
- Represents the return type of
diesel::insert_or_ignore_into - Represents the return type of
diesel::replace_into - Represents a complete
INSERT OR IGNOREstatement. - Represents a complete
INSERT OR REPLACEstatement.
Derive Macros§
- Implements
AsChangeset - Implements
QueryId