diesel::dsl

Function 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));