A database adapter that connects the Modelar ORM to SQLite databases using node-sqlite3. Currently at version 3.1.0, it supports Node.js >=4.0 and ships TypeScript definitions. It wraps the sqlite3 native binding and requires node-pre-gyp for installation. Allows switching between SQLite and other databases via Modelar's adapter system. Key differentiator: seamless integration with Modelar's chainable query builder and migration tools, while retaining full SQLite-specific features.
npm install modelar-sqlite-adapterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to register the SqliteAdapter, initialize a SQLite database, and execute a simple query using Modelar's DB class.
Install node-pre-gyp globally: npm install -g node-pre-gyp, then retry npm install.
Use CommonJS require() instead of ES import; e.g., const { SqliteAdapter } = require('modelar-sqlite-adapter').Ensure you have build tools installed (e.g., python, make, gcc). For Windows, install windows-build-tools.
Consider using an alternative SQLite adapter for Modelar or updating to a newer ORM that supports modern Node.js versions.
Run npm install modelar-sqlite-adapter --save
Use: const { SqliteAdapter } = require('modelar-sqlite-adapter');Install node-pre-gyp globally: npm install -g node-pre-gyp
Rebuild native modules: npm rebuild sqlite3. Or reinstall with npm install --build-from-source.