getOutboxTable
getOutboxTable(
registry):PgTableWithColumns
Defined in: packages/client/src/local-tables.ts:624
The Outbox (ADR-0053 decision 2) under the registry’s local schema, as a runtime Drizzle object — the
one relation the Event lane stages into. Registry-WIDE (one table, a stream column) and memoized per
local schema, exactly like getLocalMetaTable; it takes the registry only to resolve that schema.
Public on purpose: the table’s shape is contract, so an app composing a best-guess view (pending events
over down-synced aggregates) authors it as tier-① Drizzle instead of hand-written SQL —
client.query((c) => c.drizzle.select().from(getOutboxTable(registry)).where(eq(outbox.stream, "…"))).
Parameters
Section titled “Parameters”registry
Section titled “registry”SyncTableRegistry
Returns
Section titled “Returns”PgTableWithColumns