pub fn max<'a, C>(col: C) -> Function<'a>where
C: Into<Column<'a>>,
Expand description
Calculates the maximum value of a numeric column.
let query = Select::from_table("users").value(max("age"));
let (sql, _) = Sqlite::build(query)?;
assert_eq!("SELECT MAX(`age`) FROM `users`", sql);