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.
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.
- Debug
Query - A struct that implements
fmt::Display
andfmt::Debug
to show the SQL representation of a query. - Delete
Statement - Represents a SQL
DELETE
statement. - Incomplete
Insert Statement - The structure returned by
insert_into
. - Insert
Statement - A fully constructed insert statement.
- SqlQuery
- The return value of
sql_query
. - Update
Statement - Represents a complete
UPDATE
statement. - Update
Target - Values
Clause
Traits§
- AsChangeset
- Types which can be passed to
update.set
. - AsQuery
- Types that can be converted into a complete, typed SQL query.
- Into
Update Target - A type which can be passed to
update
ordelete
. - Query
- A complete SQL query with a return type.
- Query
Builder - Constructs a SQL query from a Diesel AST.
- Query
Fragment - An untyped fragment of SQL.
- QueryId
- Uniquely identifies queries by their type for the purpose of prepared statement caching.
- Select
Query - Indicates that a type is a
SELECT
statement. - Undecorated
Insert Record - Marker trait to indicate that no additional operations have been added to a record for insert.
Functions§
- debug_
query - Takes a query
QueryFragment
expression as an argument and returns a type that implementsfmt::Display
andfmt::Debug
to show the query.
Type Aliases§
- Boxed
Delete Statement - A
DELETE
statement with a boxedWHERE
clause - Boxed
Update Statement - An
UPDATE
statement with a boxedWHERE
clause. - Build
Query Result - A specialized Result type used with the query builder.
- Incomplete
Update Statement Deprecated - The type returned by
update
. The only thing you can do with this type is callset
on it.