Module diesel::prelude

source ·
Expand description

Re-exports important traits and types. Meant to be glob imported when using Diesel.

Macros§

  • Allow two or more columns which are otherwise unrelated to be used together in a group by clause.
  • Allow two or more tables which are otherwise unrelated to be used together in a query.
  • Allow two tables to be referenced in a join query without providing an explicit ON clause.
  • Declare a sql function for use in your code.
  • Specifies that a table exists, and what columns it has. This will create a new public module, with the same name, as the name of the table. In this module, you’ll find a unit struct named table, and a unit struct with the names of each of the columns.

Structs§

Enums§

Traits§

Type Aliases§

Derive Macros§

  • Implements AsChangeset
  • Implement required traits for the associations API
  • Implements Identifiable for references of the current type
  • Implements Insertable
  • Implements Queryable to load the result of statically typed queries
  • Implements QueryableByName for untyped sql queries, such as that one generated by sql_query
  • Implements Selectable