Function diesel::dsl::max

source ·
pub fn max<ST: SqlOrdAggregate, expr>(
    expr: expr
) -> max<ST, <expr as AsExpression<ST>>::Expression>where
    expr: AsExpression<ST>,
Expand description

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

Examples

assert_eq!(Ok(Some(8)), animals.select(max(legs)).first(connection));