Socket
Socket
Sign inDemoInstall

bamei-module-knex-mysql

Package Overview
Dependencies
100
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.7 to 0.0.8

2

package.json
{
"name": "bamei-module-knex-mysql",
"version": "0.0.7",
"version": "0.0.8",
"description": "knex 支持,使用 mysql 存储",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -42,11 +42,15 @@ [![NPM version][npm-image]][npm-url]

```javascript
// 使用 this.config.get('knex-mysql') 的配置初始化
this.module('knex-mysql');
// 或者
// 自定义配置初始化
const options = {};
this.module('knex-mysql', options);
module.exports = require('bamei').create(function (ctx) {
// 使用 ctx.config.get('knex-mysql') 的配置初始化
ctx.module('knex-mysql');
// 或者
// 自定义配置初始化
const options = {};
ctx.module('knex-mysql', options);
});
```
## License

@@ -53,0 +57,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc