Function diesel::dsl::count
[−]
[src]
pub fn count<T: Expression>(t: T) -> Count<T>
Creates a SQL COUNT
expression
As with most bare functions, this is not exported by default. You can import
it specifically as diesel::dsl::count
, or glob import
diesel::dsl::*
Examples
assert_eq!(Ok(1), animals.select(count(name)).first(&connection));