Skip to content

clockMicrosecondsSql

const clockMicrosecondsSql: SQL

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

The canonical microsecond clock as a Drizzle fragment, for .default(...) column positions — the CALL form public.pgxsinkit_clock_us(), never the inline expression. Deliberately clock_timestamp() (inside the function), never now()/transaction_timestamp(): now() freezes at transaction start, whereas LWW/audit ordering of a multi-row apply within one transaction needs an advancing clock. The DB function (installed by the utilities migration) is the canonical home; never inline the expression.