A lightweight MySQL query manager built on top of the popular mysql package (v2.x). Version 1.0.1 provides a simple wrapper around mysql.createPool offering query and stored procedure methods with support for generator-based control flow (e.g., co + thunkify). It does not include any built-in promise or async/await support, making it primarily suited for legacy callback or generator patterns. The package is relatively unmaintained and lacks modern features like connection string parsing or transaction helpers, pushing users toward more actively developed alternatives such as mysql2 or knex.
npm install msqNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a connection pool, running a query and a stored procedure using generator-based control flow with co and thunkify-array.
Use mysql2 with promise-based queries: import mysql2 from 'mysql2/promise'; const pool = mysql2.createPool(config); const [rows] = await pool.query('SELECT ?', [1]);Replace with 'mysql2' which is a modern fork with improved security and better performance.
Always pass a callback (or use thunkify/promisify). Example: model.query('SELECT 1', (err, rows) => { ... })Ensure you call msq(config) and assign the result to model: const model = msq(config);
Run 'npm install msq' and use require('msq') (not import).Check pool configuration: increase waitForConnections or connectionLimit; or implement query retry logic.