Skip to content

wangcpsnow/koa2-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Koa2-mysql

Middleware for koa2 mysql

1.GET

2.POST

3.PUT

4.DELETE

Install

npm install koa2-mysql --save

Usage

import Koa from "koa";
import koa2Mysql from "koa2-mysql";

app.use(koa2Mysql)

app.use(async ctx => {
    let res = await ctx.mysqlQuery('tbname').get({'id': 1});
});


License

MIT

About

A middleware for koa2 of mysql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published