记一次Nodejs 使用连接池访问postgresSql
Nodejs 使用连接池访问postgresSql
记录一次使用nodejs pool连接池访问postgresql的一次经历,还遇到了无法释放连接池的bug
代码段
const pool = new Pool(config)
/**
* 异步请求函数,查询数据库
* @returns {Promise<any>}
*/
const doQueryCategoryInfo = f...
原创
2018-11-09 10:28:36 ·
1638 阅读 ·
0 评论