diesel::dsl

Function min

Source
pub fn min<ST: SqlOrdAggregate, expr>(
    expr: expr,
) -> min<ST, <expr as AsExpression<ST>>::Expression>
where expr: AsExpression<ST>,
Expand description

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

ยงExamples

assert_eq!(Ok(Some(4)), animals.select(min(legs)).first(connection));