Skip to content

CLOCK_US_CALL_SQL_TEXT

const CLOCK_US_CALL_SQL_TEXT: "public.pgxsinkit_clock_us()" = "public.pgxsinkit_clock_us()"

Defined in: packages/contracts/src/sql-defaults.ts:20

The CALL form of the canonical microsecond clock, for string-rendering contexts (the apply-function generator’s PL/pgSQL literals). Deliberately clock_timestamp() (via the function body), never now()/transaction_timestamp(): now() freezes at transaction start, but LWW/audit ordering of a multi-row apply within one transaction needs an ADVANCING clock. The DB function is the canonical home — never inline the expression at a call site.