import type { PoolClient } from 'pg'; /** * Keep a table's `updated_at` current. A BEFORE UPDATE trigger sets it to * `now()` (the start time of the transaction) whenever a row is updated, * unless the statement sets `updated_at` itself: an import that writes a * historical date, or code that sets the value on purpose, keeps its value. * Existing rows are not backfilled; each gets the time of its next update. * * Call it from a migration, core's or an extension's (for its own tables): * * await addUpdatedAtTrigger(connection, 'my_table'); * * Safe to run again: the function is replaced and the trigger re-created. * The table must have an `updated_at` column, or every later UPDATE on it * would fail, so a missing column is an error here, at migration time. */ export declare function addUpdatedAtTrigger(connection: PoolClient, table: string): Promise;