Function: getAuditEntries()
Function: getAuditEntries()
Section titled “Function: getAuditEntries()”getAuditEntries(
options):Promise<AuditEntry[]>
Defined in: server/src/audit/query.ts:74
Server-side helper for reading audit entries. Callers apply their
own auth check upstream — v1.0 does not expose an HTTP endpoint, so
ops tooling reaches into this from admin surfaces, background jobs,
or a scheduled() handler.
When table / rowId are set the query joins the _plasma_audit_ touched_rows side table — that index answers “who last touched row
X in table Y” in O(log N) instead of scanning the touched_rows
JSON column with LIKE.
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Promise<AuditEntry[]>