随笔分类 -  postgres

摘要:转载于:http://zhubangbang.com/the-implementation-method-of-nodejs-based-on-the-function-of-postgressql-package.html 在nodejs使用pg或pg-pool,不能直接使用where来进行in操 阅读全文
posted @ 2020-06-04 16:01 Mr_Kahn 阅读(377) 评论(0) 推荐(0)
摘要:安装驱动 建议使用pg-pool,但要同时安装pg与pg-pool cnpm install pg pg-pool --save 编写模块 /**postgres.js*/ const Pool = require('pg-pool'); const config = { user: 'postgr 阅读全文
posted @ 2020-05-08 17:22 Mr_Kahn 阅读(1417) 评论(0) 推荐(0)