pub fn count<'a, T>(expr: T) -> Function<'a>where
T: Into<Expression<'a>>,
Expand description
Count of the underlying table where the given expression is not null.
let query = Select::from_table("users").value(count(asterisk()));
let (sql, _) = Sqlite::build(query)?;
assert_eq!("SELECT COUNT(*) FROM `users`", sql);