Module diesel::expression[][src]

Expand description

AST types representing various typed SQL expressions.

Almost all types implement either Expression or AsExpression.

The most common expression to work with is a Column. There are various methods that you can call on these, found in expression_methods.

You can also use numeric operators such as + on expressions of the appropriate type.

Any primitive which implements ToSql will also implement AsExpression, allowing it to be used as an argument to any of the methods described here.

Structs

Returned by the sql() function.

Returned by the SqlLiteral::bind() method when binding a value to a fragment of SQL.

Traits

Indicates that all elements of an expression are valid given a from clause.

Converts a type to its representation for use in Diesel’s query builder.

Converts a tuple of values into a tuple of Diesel expressions.

Helper trait used when boxing expressions.

Represents a typed fragment of SQL.

Converts a type to its representation for use in Diesel’s query builder.

Marker trait to indicate that an expression does not include any aggregate functions.

Indicates that an expression can be selected from a source.