import { Aggregation } from "https://dotland.deno.dev/x/pg_mem@2.6.13/transforms/aggregation.ts";
Constructors
new
Aggregation(on: _ISelection, _groupedBy: Expr[])Properties
private
groupByMapping: Map<string, IValue>How to get the grouped values on "this.enumerate()" raw items output
private
groupingValuesOnbase: IValue[]How to get grouping values on the base table raw items (not on "this.enumerate()" raw items)
Group-by values
- key: column in source hash
- value: column in this, evaluated against temporary entity.
columns: readonly IValue<any>[]
Methods
private
_enumerateAggregationKeys(t: _Transaction): Iterable<AggregItem>private
_getAggregation(name: string, call: ExprCall): AggregationComputerprivate
computeDirect(t: _Transaction): AggregItem | nullprivate
iterateFromIndex(t: _Transaction): AggregItem[] | nullprivate
seqScan(t: _Transaction): Iterable<AggregItem>checkIfIsKey(got: IValue<any>): IValue<any>
entropy(t: _Transaction): number
enumerate(t: _Transaction): Iterable<T>
getAggregation(name: string, call: ExprCall): IValue
hasItem(value: T, t: _Transaction): boolean