pub struct FuncCount {
pub arg: Option<Box<Expr>>,
pub filter: Option<Box<Expr>>,
}Expand description
The SQL COUNT aggregate function.
When arg is None, represents COUNT(*) (counts all rows). When arg is
Some, counts the number of rows where the argument expression is non-null.
§Examples
COUNT(*) // arg: None, filter: None
COUNT(column) // arg: Some(column), filter: None
COUNT(*) FILTER (WHERE cond) // arg: None, filter: Some(cond)Fields§
§arg: Option<Box<Expr>>The expression to count. None means COUNT(*).
filter: Option<Box<Expr>>Optional filter applied before counting.
Trait Implementations§
impl StructuralPartialEq for FuncCount
Auto Trait Implementations§
impl Freeze for FuncCount
impl RefUnwindSafe for FuncCount
impl Send for FuncCount
impl Sync for FuncCount
impl Unpin for FuncCount
impl UnwindSafe for FuncCount
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more