dj-egg-mysql

3.0.5 • Public • Published

dj-egg-mysql(对egg-mysql进行修改。不在依赖ali-rds,用法参考)

NPM version build status Test coverage David deps Known Vulnerabilities npm download

MySQL 插件是为 egg 提供 MySQL 数据库访问的功能

安装

$ npm i dj-egg-mysql --save

配置

通过 config/plugin.js 配置启动 MySQL 插件:

exports.mysql = {
  enable: true,
  package: 'egg-mysql',
};

config/config.${env}.js 配置各个环境的数据库连接信息:

Package Sidebar

Install

npm i dj-egg-mysql

Weekly Downloads

4

Version

3.0.5

License

MIT

Unpacked Size

20.6 kB

Total Files

44

Last publish

Collaborators

  • yumeiqiang