📜  knex.raw postgres如何添加多个参数 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:35.740000             🧑  作者: Mango

代码示例1
const query = `
SELECT * FROM users
WHERE users.id = :value1 AND users.email = :value2;
`

const params = {value1:userId, value2:userEmail}
const res = knex.raw(query, params)