Promised-based high-level extension for the mysqljs MySQL driver for Node.js >=7.6. Stable version 0.3.0 provides named connection pools, automatic connection release via async scopes, and higher-level query methods like insert, fetchRow, fetchAll. Wraps mysqljs pools with native Promises and async/await, simplifying error handling and connection lifecycle. Differentiators: global named pools, connection scopes with auto-release, high-level query API. Low maintenance cadence; last release 2019.
npm install mysql-magicNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows initializing a named pool and running a query within an auto-releasing connection scope.
Upgrade Node.js to >=7.6 or use older version 0.2.x.
Consider migrating to mysql2 or sequelize for active maintenance.
Use async function() {} instead of async () => {}.npm install mysql
Use async function() { ... } instead of async () => { ... }