Module

x/pg_mem/interfaces-private.ts>AggregationComputer

An in memory postgres DB instance for your unit tests
Go to Latest
interface AggregationComputer
import { type AggregationComputer } from "https://dotland.deno.dev/x/pg_mem@2.6.3/interfaces-private.ts";

Type Parameters

optional
TRet = any

Properties

readonly
type: _IType

Methods

optional
computeFromIndex(
key: IndexKey,
index: _IIndex,
): TRet | undefined

Compute from index (ex: count(*) with a group-by)

optional
computeNoGroup(t: _Transaction): TRet | undefined

Compute out of nowhere when there is no group (ex: when there is no grouping, count(*) on a table or count(xxx) when there is an index on xxx)

When iterating, each new group will have its computer