The returned backend owns its PostgresConnection (a pg.Pool plus a
dedicated LISTEN client); the high-level classes depend only on
IQueueBackend and never touch a pg client directly.
Accepts a connection string, pool config (optionally carrying a schema),
or an existing pg.Pool. The pg driver is loaded lazily for config/string
connections; Redis-only users do not need it installed.
Inject this into the queue classes (or set it as the process-wide default via
setDefaultBackendFactory(createPostgresBackend)) to back BullMQ with
PostgreSQL.
BackendFactory that builds a PostgresQueueBackend.
The returned backend owns its PostgresConnection (a
pg.Poolplus a dedicatedLISTENclient); the high-level classes depend only onIQueueBackendand never touch apgclient directly.Accepts a connection string, pool config (optionally carrying a
schema), or an existingpg.Pool. Thepgdriver is loaded lazily for config/string connections; Redis-only users do not need it installed.Inject this into the queue classes (or set it as the process-wide default via
setDefaultBackendFactory(createPostgresBackend)) to back BullMQ with PostgreSQL.