Module diesel::expression::dsl [] [src]

Reexports various top level functions and core extensions that are too generic to export by default. This module exists to conveniently glob import in functions where you need them.

Structs

Avg
Max
Min
Sum
now

Represents the SQL CURRENT_TIMESTAMP constant. This is equivalent to the NOW() function on backends that support it.

Functions

avg

Represents a SQL AVG function. This function can only take types which are Foldable.

count

Creates a SQL COUNT expression

count_star

Creates a SQL COUNT(*) expression

date

Represents the SQL DATE function. The argument should be a Timestamp expression, and the return value will be an expression of type Date

exists

Creates a SQL EXISTS expression.

max

Represents a SQL MAX function. This function can only take types which are ordered.

min

Represents a SQL MIN function. This function can only take types which are ordered.

sql
sum

Represents a SQL SUM function. This function can only take types which are Foldable.

Type Definitions

date