AuditOptions interface

Everything audit() needs to build its middleware.

Signature:

export interface AuditOptions 

Properties

Property

Modifiers

Type

Description

config?

AuditConfig

(Optional) Where the trail goes. Omitted entirely, the defaults apply.

connectionString

string

Connection string for the trail's own pool.

getPrincipal

() => unknown

Resolves the actor to record, or a falsy value to record none.

stamps?

StampTables

(Optional) Soft-delete columns, so a stamped delete is recorded as a delete.

tables

Record<string, string>

Physical table to model name, for the tables that are recorded.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.