A MySQL client module for the bamei framework, version 0.0.12. Provides MySQL connection pooling and query execution via the bamei context API. Designed for Node.js v6.0+, wraps the popular mysql package. No significant release cadence; minimal documentation in Chinese. Differentiator: integrates seamlessly with bamei's module system for configuration and context access.
npm install bamei-module-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize the MySQL module with configuration and run a simple query.
Use require('bamei').create() and ctx.module('mysql') instead of importing the module directly.Ensure ctx.module('mysql') is called before ctx.get('mysql.client').Wrap in a Promise or use util.promisify() to use async/await.
Explicitly set host, user, password, database via ctx.module('mysql', {...}) using environment variables.Install: npm install bamei bamei-module-mysql --save. Then use require('bamei').create() pattern, not direct require().Place ctx.module('mysql') inside bamei.create(function(ctx) { ... }) callback.Ensure MySQL is running on the specified host:port. Use environment variables to configure connection.
No dependency data recorded yet.