[][src]Function diesel::dsl::max

pub fn max<ST: SqlOrdAggregate, expr>(
    expr: expr
) -> max<ST, <expr as AsExpression<Nullable<ST>>>::Expression> where
    expr: AsExpression<Nullable<ST>>, 

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