sequelize.query() 原生查询使用replacements 参数能防sql注入吗?sequelize.query('SELECT * FROM projects WHERE status = ?',
{ replacements: ['active'], type: sequelize.QueryTypes.SELECT }
).then(projects => {
console.log(projects)
})
像这里的status的值的查询?
添加回答
举报
0/150
提交
取消