我正在使用 Knex.js 和 mysql2。有没有办法确定在这个函数中插入了多少行以及更新了多少行?
await this.knex("tableName")
.insert(arrayOfObjects)
.onConflict(["primaryKey1", "primaryKey2"])
.merge()
我正在使用 Knex.js 和 mysql2。有没有办法确定在这个函数中插入了多少行以及更新了多少行?
await this.knex("tableName")
.insert(arrayOfObjects)
.onConflict(["primaryKey1", "primaryKey2"])
.merge()