Abstract Creates an instance of AbstractDatabasePoolClient.
The underlying client instance.
The name of the queue.
Protected clientThe underlying client instance.
The name of the queue.
Abstract acquireAbstract beginAbstract commitAbstract countCounts the number of jobs in the specified states.
const jobCounts = await client.countJobsByState('waiting', 'active');
Abstract deleteAbstract initAbstract insertAbstract releaseAbstract rollbackAbstract updateUpdates the state of a job by its ID.
The ID of the job.
The new state of the job.
Optional errorMessage: stringAn optional error message if the job failed.
const job = await client.updateJobStateById(1, 'completed');
Abstract class representing a database pool client.