ImportDrizzleAuditOptions
Defined in: src/bridges/drizzle-audit.ts:278
Options for importDrizzleAuditEntries.
Extends
Section titled “Extends”Properties
Section titled “Properties”| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
action? |
(entry) => string |
Override the action name. Default: see the module docs. | DrizzleAuditMapping.action |
src/bridges/drizzle-audit.ts:78 |
actor? |
(entry) => AuditActor |
Override the actor. Default: { id: userId, type: "user" }, else the ambient context’s actor, else { id: "system", type: "system" }. |
DrizzleAuditMapping.actor |
src/bridges/drizzle-audit.ts:83 |
batchSize? |
number |
Events per recordMany call. Default 500. |
- | src/bridges/drizzle-audit.ts:280 |
include? |
(entry) => boolean |
Only forward entries for which this returns true (default: all). |
DrizzleAuditMapping.include |
src/bridges/drizzle-audit.ts:87 |
onProgress? |
(imported, total) => void |
Progress callback after each committed batch. | - | src/bridges/drizzle-audit.ts:282 |
targets? |
(entry) => AuditTarget[] |
Override the targets. Default: [{ type: tableName, id: rowId }] (none without both). |
DrizzleAuditMapping.targets |
src/bridges/drizzle-audit.ts:85 |
tenant? |
string | ((entry) => string | null | undefined) |
The tenant of an entry: a fixed key, or a function. Return null / undefined (or omit the option) to fall back to entry.tenantId, then entry.metadata.tenantId, then the ambient audit context’s tenant; entries with no tenant at all throw. |
DrizzleAuditMapping.tenant |
src/bridges/drizzle-audit.ts:76 |