我正在尝试使用md5身份验证方法通过node连接到postgres。IPv6 local connections: 我可以通过psql连接到数据库,没有任何问题,但我的问题是,当通过md5连接到postgres时,如何在节点内创建连接字符串?如果我将密码更改为使用‘pg_hba.conf’作为身份验证方法,那么我可以使用以下
当遵循时,在处理和导出getMerchants、createMerchant和deleteMerchant函数时,我得到了这个错误-- TypeError:无法读取未定义的属性‘行’,这是怎么回事??在getMerchants和resolve(results.rows)上出现错误const Pool = require('pg').Pool
const pool = new Pool({