A wrapper around Sequelize and potentially other SQL connectors, providing SQL database connections for the Harmony Framework (exframe ecosystem). Current stable version is 1.3.4. Release cadence is low, with occasional patches. It integrates with exframe-logger, exframe-health, and exframe-service for logging, health checks, and graceful shutdown. Key differentiators: abstraction over multiple SQL drivers, built-in health check, and seamless integration with the exframe framework. Not recommended for standalone use outside the exframe ecosystem.
npm install exframe-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize a database connection using exframe-sql with required logger and optional configuration.
Use destructuring: const { connection } = db.init({...});Always pass a logger created via 'exframe-logger'.create().
Do not install a different version of sequelize separately; rely on exframe-sql's version.
Check source or avoid calling connect() manually after init() unless you intend to reconnect.
Use require() instead of import.
Use CommonJS require: const db = require('exframe-sql');Pass a logger instance: db.init({ logger: require('exframe-logger').create('...') });Verify DB_HOST, DB_PORT environment variables or connection options.