A SQL-based store plugin for the better-queue library, enabling persistent queue storage in relational databases. Version 1.0.6 is the latest stable release, though the project appears unmaintained since 2016. It integrates with better-queue's store interface to replace the default in-memory store with SQL backends, allowing queues to survive process restarts. Compared to memory-only stores, it adds durability but requires careful schema management and connection pooling.
npm install better-queue-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a SQLite-backed queue using better-queue-sql.
Use better-queue@3.x or switch to a maintained store.
Consider using an alternative like @datastructures-js/queue or a modern store.
Pass either a knex instance or a config object with `client` and `connection`.
Run CREATE TABLE IF NOT EXISTS with columns id, queue_name, priority, attempts, data, etc.
npm install better-queue@3 --save
Use 'mysql', 'pg', 'sqlite3' etc. as per knex docs.