MySQL plugin for the Egg.js framework, providing a convenient wrapper around @eggjs/rds (ali-rds). Version 5.0.0 requires Node >=18.0.0. It supports both single and multiple data sources, CRUD operations, and manual/automatic transaction management. The plugin extends the app and agent with mysql/mysqls instances, enabling straightforward SQL queries. Key differentiators: tight integration with Egg.js lifecycle, singleton pattern for multiple DB clients, and full TypeScript type definitions.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
The plugin is not imported directly; it is configured in config/plugin.ts as an Egg.js plugin.
The configuration must include 'client' object; using top-level fields directly is invalid.
The plugin injects on app; do not import the package directly. app.mysql is available after enabling the plugin.
Configures egg-mysql plugin with a single MySQL connection, then uses app.mysql to run a query returning the current time.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.