pub trait WindowAggregate<A, T>: Aggregate<A, T> where
    A: RefUnwindSafe + UnwindSafe,
    T: ToSql
{ fn value(&self, _: Option<&A>) -> Result<T>; fn inverse(&self, _: &mut Context<'_>, _: &mut A) -> Result<()>; }
Available on crate features functions and window only.
Expand description

WindowAggregate is the callback interface for user-defined aggregate window function.

Required Methods

Returns the current value of the aggregate. Unlike xFinal, the implementation should not delete any context.

Removes a row from the current window.

Implementors