Pinverse
Bun

property

sqlite.AggregateOptions.inverse

inverse?: (accumulator: T, ...args: SQLOutputValue[]) => T

When this function is provided, the aggregate method will work as a window function. The function receives the current state and the dropped row value. The return value of this function should be the new state.