Registry / database / restbase-mod-table-sqlite

restbase-mod-table-sqlite

JSON →
library1.2.1jsnpmunverified

An SQLite3 back-end module for RESTBase conforming to the RESTBase storage specification. Current stable version is 1.2.1. It is designed for testing and development purposes, not production use. Key differentiator: provides a lightweight SQLite-based storage for RESTBase without requiring Cassandra. Release cadence is low; last release was 7 years ago. Limited to RESTBase ecosystem.

npm install restbase-mod-table-sqlite
INSTALL
IMPORT
SIG · RESTBASE-MOD-TABLE
R
restbase-mod-table-sqlite
databasejavascriptv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

restbase-mod-table-sqlite
const TableSqlite = require('restbase-mod-table-sqlite')
import TableSqlite from 'restbase-mod-table-sqlite'
This module is CommonJS only; no ESM support. Do not use ES6 import syntax.
module.exports
const sqliteModule = require('restbase-mod-table-sqlite') // sqliteModule is the module itself, typically passed to RESTBase
const { Table } = require('restbase-mod-table-sqlite')
Module exports a single function/object, not named exports.
RESTBase table module config
// In config.yaml: x-modules: - name: restbase-mod-table-sqlite version: 1.0.0 type: npm options: conf: dbname: /path/to/db.sqlite3
// Using wrong module name or incorrect indentation
Configuration is through RESTBase's YAML config, not direct JavaScript import.

Shows how to configure RESTBase to use SQLite backend via config.yaml or programmatic options.

// Install RESTBase and sqlite backend // npm install restbase-mod-table-sqlite // In config.yaml, replace Cassandra with SQLite: /* /{module:table}: x-modules: - name: restbase-mod-table-sqlite version: 1.0.0 type: npm options: conf: dbname: /tmp/test.sqlite3 */ // Then start RESTBase normally. // For direct usage (not typical): const RESTBase = require('restbase'); const rb = new RESTBase({ config: { modules: { table: { module: 'restbase-mod-table-sqlite', options: { conf: { dbname: '/tmp/test.sqlite3' } } } } } });
Debug
Known issues
gotchaThis module is intended for testing/development only. Not suitable for production use.
fix
Use Cassandra backend (restbase-mod-table-cassandra) for production.
affects: all
gotchaRequires SQLite3 development headers installation (e.g., apt-get install libsqlite3-dev on Ubuntu).
fix
Install SQLite3 development headers before npm install.
affects: all
deprecatedNo active development; last release 7 years ago. May not work with modern Node.js versions.
fix
Consider alternative storage backends or upgrade to maintained forks.
affects: >=1.0.0
gotchaConfiguration must be done via RESTBase's YAML config file, not through direct module imports.
fix
Ensure table module config in config.yaml points to this package.
affects: all
Errors
Common errors & fixes
Error: Cannot find module 'restbase-mod-table-sqlite'
Package not installed or not in node_modules
fix
npm install restbase-mod-table-sqlite
Error: Cannot find module 'sqlite3'
SQLite3 native binding missing
fix
Install SQLite3 development headers (e.g., apt-get install libsqlite3-dev for Debian/Ubuntu, brew install sqlite for macOS) and run npm rebuild sqlite3
Error: SQLITE_ERROR: no such table: ...
Table not created; RESTBase schema not initialized
fix
Ensure RESTBase is properly configured and starts correctly to create tables automatically.
Upgrade
Version history
1.2.1latest on npm
Audit
Dependencies
sqlite3requiredcore SQLite database driver
restbase-mod-table-specrequiredconforms to RESTBase table storage specification
Agent activity
7 hits · last 30 days
node
6
Meta
1
Resources
restbase-mod-table-sqlite — npm install restbase-mod-table-sqlite · libregistry