Simple MySQL query interface built on connection pools. Version 0.1.2 wraps the mysql package to provide a straightforward function for executing queries against named pools (e.g., 'master'). It automatically handles reconnection (up to 5 times by default, configurable). Notably, it uses the config module for database configuration files and was transferred from an older package (mysql-query) for npm publication. This package is rarely updated and lacks TypeScript support.
npm install mysql-query-jsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: require the module, execute a query with parameters, and handle the result callback.
Migrate to mysql2 or use a more modern query builder like knex.
Ensure callback signature is (err, rows, fields) => {}.Install the config package and create a config/default.js file with the required structure.
Install config: npm install config. Ensure config/default.js exists.
Change the callback signature to (err, rows, fields) => {}.