Lightweight promise-based wrapper around mysql-query-js for Node.js MySQL connections. Version 1.0.1, stable but unmaintained since 2015. Provides a single query() function that returns promises, with support for multiple named database configurations via the 'config' module. Differentiators: minimal API, integrated config management, and pool support. Alternatives: mysql2/promise, knex, or sequelize offer more features.
npm install mysql-query-promiseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Promisified MySQL query execution with config-based connection pool.
Migrate to mysql2: npm install mysql2 and use require('mysql2/promise').createPool().query().Use const query = require('mysql-query-promise') without curly braces.Install config: npm install config and create config/default.js with database section.
Wrap in try-catch or add .catch() with detailed logging.
Run: npm install config
Use: const query = require('mysql-query-promise')Ensure config/default.js exports a 'database' object with connection settings.