1.0.3 • Published 7 years ago
koa2-mysqlpool v1.0.3
MySqlPool for Koa2
Use Node.js + Mysql this platform, must use the MySQL connection pool. This is very efficient. Then the use of Koa2 framework, how to deal with the connection pool, management access to the acquisition and release.
- This package has been published to npm, you can use
npm i koa2-mysqlpool
follow this middleware
eg.
import mysqlPool from 'koa2-mysqlpool';
import Koa from 'koa';
const app = new Koa();
app.use(mysqlPool());