I am trying to insert multiple rows to pgsql database using pg-promise. In my case, few records, which I am trying to insert, may exist already in the table. In such case, I need to update them. By going through the pg-promise official documentaion, I found multiple rows can either be inserted or updated using helpers. Is there any way to do like below but for multiple inserts/updates?
INSERT INTO table_name(column_list)
VALUES(value_list)
ON CONFLICT target action;
ON CONFLICT …
as a string. – UdaassignColumns
! – Uda