onDuplicateKeyUpdate

Is this the correct way to use this method? Can't find documentation
.insert(schema.item)
.values({
id: message.data.id, //primary key
itemStatus: "new"
})
.onDuplicateKeyUpdate({
set: {
itemStatus: "old"
},
});
.insert(schema.item)
.values({
id: message.data.id, //primary key
itemStatus: "new"
})
.onDuplicateKeyUpdate({
set: {
itemStatus: "old"
},
});
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server