如果要再使用 squel
包,最好加上这些参数,以避免坑
const sql = squel
.insert({
autoQuoteTableNames: true,
autoQuoteFieldNames: true,
replaceSingleQuotes: true
})
.into(table)
.setFieldsRows(rows);
如果要再使用 squel
包,最好加上这些参数,以避免坑
const sql = squel
.insert({
autoQuoteTableNames: true,
autoQuoteFieldNames: true,
replaceSingleQuotes: true
})
.into(table)
.setFieldsRows(rows);
本文标题:`squel` 包在使用中的一些坑
本文链接:https://www.haomeiwen.com/subject/yizyxctx.html
网友评论