type alias AggregateRepairs

The two owner-facing repairs every trigger-maintained aggregate column set needs: write the numbers the operator typed, and rebuild chosen columns from the rows they count.

Type Parameters

F extends string

Properties

reset: (
entityId: number,
fields: readonly F[],
) => Promise<void>
update: (
entityId: number,
values: AggregateValues<F>,
) => Promise<void>

Usage

import { type AggregateRepairs } from "docs/database.ts";