createAuditTableSql
createAuditTableSql(
table?):string
Defined in: pipeline-audit/src/sinks/postgres.sink.ts:56
SQL to create the audit table. Run once in a migration.
A row whose outcome is 'pending' is an operation that started and has no
final record: duration_ms and completed_at stay null. An old pending row
marks an attempt interrupted by a process stop, whose outcome is unknown:
SELECT * FROM audit_logWHERE outcome = 'pending' AND occurred_at < now() - interval '1 hour';Parameters
Section titled “Parameters”table?
Section titled “table?”string = 'audit_log'
Table name (validated). Default 'audit_log'.
Returns
Section titled “Returns”string