[−][src]Function quaint::ast::count
pub fn count<'a, T>(expr: T) -> Count<'a> where
T: Into<DatabaseValue<'a>>,
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);