Object-oriented helper for MySQL interactions, version 1.6.4. Provides a simple query builder and connection management for Node.js MySQL applications. Release cadence appears low (last update may be older). Differentiates by offering a more OOP-style approach compared to raw mysql2 or knex, but is less feature-rich and maintained. Not a full ORM; minimal abstraction layer for simple queries.
npm install mysql-toolboxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup with environment variables and a parameterized query.
Update code to handle RowDataPacket objects or use .map() to extract values.
Remove pool configuration; each MySQL instance opens one connection.
Replace QueryBuilder calls with direct SQL strings.
Implement manual reconnection logic or use a driver with built-in reconnect (e.g., mysql2 with pool).
Run 'npm install mysql2' alongside mysql-toolbox.
Use 'const { MySQL } = require('mysql-toolbox');' or ES6 import.Install mysql2: npm install mysql2
Upgrade to v1.6+ or use callbacks if on older version.