A transaction wrapper for the node-mysql 2.x driver, providing a callback queue with dynamic connection pooling to manage MySQL transactions. Version 0.2.1 is the current stable release, targeting Node.js 0.12. It offers chain-based query methods with auto-commit and rollback, allowing flexible transaction scopes. Differentiators include dynamic connection handling, idle connection cleanup, and timeout-based rollback. The package is unmaintained and should not be used in new projects.
npm install node-mysql-transactionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize transaction object, create a chain, attach commit/rollback listeners, and execute queries.
Use a maintained MySQL transaction library like mysql2 or knex.
Monitor connection counts and adjust idleConnectionCutoffTime appropriately.
Explicitly call .autoCommit(false) if you want to control commit manually.
Use the mysql package version 2.x or switch to a different transaction library.
Run 'npm install node-mysql-transaction' and ensure Node.js 0.12 compatibility.
Call transaction({...}) with configuration to create the transaction instance, then call chain() on it.Verify user, password, and host in the connection config object.