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

pub fn max<ST, T>(t: T) -> Max<T> where
    ST: SqlOrd,
    T: Expression<SqlType = 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));