A promise-based wrapper for the MySQL driver that provides connection pooling and a nicer API. Version 1.1.1 (latest) is stable but unmaintained since 2015. It converts callback-style mysql queries to promises using a custom thenable pattern, making it incompatible with modern async/await and ES6 Promises. It is a legacy alternative to mysql2 with promise support or knex.
npm install then-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a connection pool and runs a simple query using the promised-based API.
Switch to a modern library like mysql2 with promise support, or use knex.
Run `npm install mysql` alongside then-mysql.
Always chain .done() or switch to native promises that execute automatically.
Use .done() instead of .then() to execute the query.
Run `npm install mysql`.