A minimal utility for executing multiple MySQL queries with a single callback, simplifying batch operations. The current stable version is 0.2.0, released in an early stage with infrequent updates. It wraps the 'mysql' npm package, supporting connection pooling, transactions, and automatic connection release. Unlike more modern libraries like 'mysql2' or ORMs like 'Sequelize', it provides a thin layer for sequential query execution without promises or async/await support, relying on callbacks. Suitable for legacy Node.js projects or quick scripts where minimal overhead is desired.
npm install mysql-queriesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the library with a MySQL connection, then executes two SQL queries sequentially with parameters, logging results or errors.
Migrate to a library like 'mysql2' with promise support.
Use 'import mysqlQueries from "mysql-queries"' instead of 'import { init } from "mysql-queries"'.Run 'npm install mysql' (version 2.x) as a project dependency.
Wrap single SQL in an array: '["SELECT 1"]'.