import { type _ITable } from "https://dotland.deno.dev/x/pg_mem@3.0.3/interfaces-private.ts";
Methods
delete(t: _Transaction, toDelete: Row): void
update(t: _Transaction, toUpdate: Row): Row | never
createIndex(t: _Transaction, expressions: CreateIndexDef): _IConstraint | nil
createIndex(): _IConstraint
getConstraint(constraint: string): _IConstraint | nil
addConstraint(constraint: TableConstraint, t: _Transaction): _IConstraint | nil
dropIndex(t: _Transaction, name: string): void
drop(t: _Transaction, cascade: boolean): void
onBeforeChange(columns: (string | _Column)[], check: ChangeHandler): ISubscription
Will be executed when one of the given columns is affected (update/delete)
onCheckChange(columns: "all" | (string | _Column)[], check: ChangeHandler): ISubscription
Will be executed once all 'onBeforeChange' handlers have ran (coherency checks)
onDrop(sub: DropHandler): ISubscription
onIndex(sub: IndexHandler): ISubscription
onTruncate(sub: TruncateHandler): ISubscription
truncate(t: _Transaction, truncateOpts?: TruncateOpts): void