Trait rusqlite::functions::WindowAggregate [−][src]
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<()>; }
feature = "window"
WindowAggregate is the callback interface for
user-defined aggregate window function.
Required methods
fn value(&self, _: Option<&A>) -> Result<T>
[src]
Returns the current value of the aggregate. Unlike xFinal, the implementation should not delete any context.
fn inverse(&self, _: &mut Context<'_>, _: &mut A) -> Result<()>
[src]
Removes a row from the current window.