DEV Community

Discussion on: How to do upserts in Knex.js (PostgreSQL)

Collapse
 
abdellani profile image
Mohamed ABDELLANI

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.

Collapse
 
vvo profile image
Vincent Voyer

Thanks, since this was a sensible operation for me I wanted something less generic where I have control over the code.