Installation
Requirements
- Node.js 20 or newer
- PostgreSQL 14 or newer
- pnpm or yarn (npm works but has rough edges with NAPI-RS)
Install the package
bash
pnpm add @eddyq/queuebash
yarn add @eddyq/queuebash
npm install @eddyq/queueNestJS
If you're on NestJS, install the module package alongside the core client:
bash
pnpm add @eddyq/queue @eddyq/nestjsSee the NestJS guide for forRoot configuration and decorator usage.
Database setup
eddyq owns its own schema. You don't create tables manually — but you do need to apply migrations explicitly before starting workers.
bash
npx eddyq migrate run --database-url "$DATABASE_URL"See Migrations for the full rationale and the Node-script alternative.