node-mysql78
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "node-mysql78", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "node-mysql78", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -118,2 +118,17 @@ # node-mysql78 | ||
>>### Get a MySQL connection and do whatever you want and release the connection. | ||
``` | ||
let con=await mysql78.getConnection( ) ; | ||
//do something | ||
await mysql78.releaseConnection(con); | ||
``` | ||
>>### Adding log information | ||
``` | ||
let up = new UpInfo().getGuest();//Simulated user upload | ||
mysql78.isLog = true; | ||
let back=await mysql78._addWarn("info info ", "kind", up) ; | ||
//We can query the log by kind or apisys or apiobj or upid or upby... | ||
``` | ||
*** | ||
@@ -120,0 +135,0 @@ >## 框架简要说明 |
68112
143