basalt / events/src / OutboxEnqueueOptions
Interface: OutboxEnqueueOptions
Defined in: events/src/outbox.ts:58
Options for Outbox.enqueue.
Extends
Properties
tenantId?
> optional tenantId?: string
Defined in: events/src/outbox.ts:59
tx?
> optional tx?: unknown
Defined in: events/src/outbox.ts:54
The transaction the entry must be written in (e.g. the Prisma interactive transaction client, or the DatabaseSync running BEGIN … COMMIT). When the transaction rolls back the entry disappears with the state change — the whole point of the transactional outbox. Its type is store-specific; a store without transactions (the in-memory one) ignores it.