Lightweight MySQL wrapper for Node.js that integrates with the CTL async flow control library (ctl >=1.0.0). Version 1.1.6 is current. Provides promise-based query execution and connection pooling. Differentiators: tight integration with CTL for structured error handling and composable async operations. Released by leanderlee.
npm install ctl-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a MySQL database using CTL MySQL wrapper, executes a simple query, and logs results.
Update to version 1.1.6 or later, which uses mysql >=2.18.1.
Ensure ctl version matches '>=1.0.0'.
Run 'npm install ctl-mysql ctl' to install both the wrapper and its peer dependency.
Use ESM import: import { connect } from 'ctl-mysql'; const db = connect({...}); await db.query(...);Check host, user, password, and database name in connect options.