Module diesel::prelude
[−]
[src]
Re-exports important traits and types. Meant to be glob imported when using Diesel.
Reexports
pub use associations::Identifiable; |
pub use connection::Connection; |
pub use expression::Expression; |
pub use expression::SelectableExpression; |
pub use expression::AppearsOnTable; |
pub use expression::BoxableExpression; |
pub use expression_methods::*; |
pub use query_source::QuerySource; |
pub use query_source::Queryable; |
pub use query_source::Table; |
pub use query_source::Column; |
pub use result::QueryResult; |
pub use result::ConnectionError; |
pub use result::ConnectionResult; |
pub use result::OptionalExtension; |
Structs
PgConnection |
The connection string expected by |
Traits
BelongingToDsl | |
BoxedDsl |
Boxes the pieces of a query into a single type. This is useful for cases where you want to conditionally modify a query, but need the type to remain the same. The backend must be specified as part of this. It is not possible to box a query and have it be useable on multiple backends. |
CountDsl |
Adds a simple |
DistinctDsl |
Adds the |
ExecuteDsl | |
FilterDsl |
Adds to the |
FindDsl |
Attempts to find a single record from the given table by primary key. |
FirstDsl | |
GroupedBy | |
Insertable |
Represents that a structure can be used to insert a new row into the
database. This is automatically implemented for |
JoinDsl |
Methods allowing various joins between two or more tables. |
JoinOnDsl | |
JoinTo |
Indicates that two tables can be used together in a JOIN clause. Implementations of this trait will be generated for you automatically by the association annotations from codegen. |
LimitDsl |
Sets the limit clause of a query. If there was already a limit clause, it will be overridden. This is automatically implemented for the various query builder types. |
LoadDsl |
Methods to execute a query given a connection. These are automatically implemented for the various query types. |
LoadQuery | |
OffsetDsl |
Sets the offset clause of a query. If there was already a offset clause, it will be overridden. This is automatically implemented for the various query builder types. |
OrderDsl |
Sets the order clause of a query. If there was already a order clause, it
will be overridden. The expression passed to |
SaveChangesDsl | |
SelectDsl |
Sets the select clause of a query. If there was already a select clause, it
will be overridden. The expression passed to |