SQLite store adapter for the better-queue task queue library. Version 1.0.7 is the latest stable release. The package provides a persistent store backed by SQLite, enabling queue durability and crash recovery. It integrates with better-queue's store interface and supports concurrency and retries. The package is lightweight and requires only better-queue as a peer dependency. It is suitable for Node.js applications needing a simple, file-based queue with SQL persistence.
npm install better-queue-sqliteNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a SQLite store for better-queue with custom options and push a task.
Create the store instance first: const store = new SqliteStore(opts); then pass it to Queue.
Use path.resolve(__dirname, 'queue.db') to ensure the database file is in the expected location.
Wrap store instantiation in a try-catch or ensure the directory has write permissions.
Use the options from better-queue's store interface; the store adapter inherits options from better-queue.
Run npm install better-queue
Use const SqliteStore = require('better-queue-sqlite');