tl;dr; Since November 2020, you can use Knex.js's onConflict/merge/ignore API features to do upserts in Knex.js: https://knexjs.org/#Builder-onConf...
For further actions, you may consider blocking this person and/or reporting abuse
Hi
Thanks for sharing.
There's also this package that implements upsert for you, but to be honest I didn't try.
npmjs.com/package/knex-upsert
Regards.
Thanks, since this was a sensible operation for me I wanted something less generic where I have control over the code.
Merci Vincent ! Just what I needed!
Exactly what i was looking for, merci vincent !