Socket
Book a DemoInstallSign in
Socket

@sidequest/sqlite-backend

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sidequest/sqlite-backend

@sidequest/sqlite-backend is a SQLite backend for Sidequest, a distributed background job queue system.

latest
Source
npmnpm
Version
1.8.0
Version published
Weekly downloads
43
-70.14%
Maintainers
2
Weekly downloads
 
Created
Source

@sidequest/sqlite-backend

SQLite backend driver for the Sidequest job processing system. This is the default backend for development and testing due to its simplicity and zero-configuration setup. Not recommended for production use.

Summary

This package provides a SQLite implementation of the Sidequest backend interface, enabling you to use SQLite as the storage layer for your job queue. It offers all the features of Sidequest including job management, queue operations, statistics, and cleanup routines, while leveraging SQLite's simplicity, zero-configuration setup, and file-based storage.

The SQLite backend extends the SQLBackend base class and provides optimized SQL queries for job processing, including atomic job claiming operations using SQLite transactions and efficient local file-based storage perfect for development, testing, and single-server deployments.

Installation

Install the SQLite backend package:

npm install @sidequest/sqlite-backend

You'll also need to install the main Sidequest package if you haven't already:

npm install sidequest

Basic Usage with Sidequest

Sidequest Configuration

Configure Sidequest to use the SQLite backend:

import { Sidequest } from "sidequest";

await Sidequest.start({
  backend: {
    driver: "@sidequest/sqlite-backend",
    config: "./sidequest.sqlite",
  },
  queues: [{ name: "default", priority: 10, workers: 2 }],
});

Connection String Examples

Default SQLite File:

backend: {
  driver: '@sidequest/sqlite-backend',
  config: './sidequest.sqlite'
}

Custom Database Path:

backend: {
  driver: '@sidequest/sqlite-backend',
  config: '/var/data/myapp.sqlite'
}

In-Memory Database (Testing):

backend: {
  driver: '@sidequest/sqlite-backend',
  config: ':memory:'
}

Features

  • Zero Configuration - No database server setup required, just specify a file path
  • File-Based Storage - Self-contained database in a single file for easy deployment
  • ACID Transactions - Full transaction support for data integrity and safe job claiming
  • Lightweight - Minimal resource footprint, perfect for development and small deployments
  • Migration Support - Automatic database schema management with Knex.js migrations
  • Portable - Database files can be easily backed up, moved, or shared

License

LGPL-3.0-or-later

Keywords

nodejs

FAQs

Package last updated on 22 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts