Function block_tools::db::use_diesel::dsl::min[][src]

pub fn min<ST, expr>(
    expr: expr
) -> min<ST, <expr as AsExpression<ST>>::Expression> where
    expr: AsExpression<ST>,
    ST: SqlOrd + IntoNullable

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