Skip to content

createPgNotifyAdapter

createPgNotifyAdapter(options): Promise<NotifyAdapter>

Defined in: packages/postgres/src/notify-adapter/notify-adapter.pg.ts:15

Create a notify adapter backed by PostgreSQL LISTEN/NOTIFY.

PostgreSQL has no native counter primitive suitable for atomic wake-fan-out gating, so provideWakeHint/consumeWakeHint are no-ops here — every listener wakes on every notification, and the database handles contention.

PostgreSQL notify adapter configuration.

string = "queuert"

Prefix for all LISTEN/NOTIFY channel names.

Default Value

"queuert"

PgNotifyProvider

PostgreSQL notify provider wrapping the LISTEN/NOTIFY connection.

Promise<NotifyAdapter>