You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pgp.helpers gives me insert and update but I cant see the delete function.
How can I delete an array of ids with pg-promise ?
const query = await t.none('DELETE FROM product_media WHERE id IN ...');
or how can I execute this query now ?
const query = await t.none('DELETE FROM product_media WHERE id IN ($<values:raw>)');
const cs = pgp.helpers.values(imgToDelete, ['id']);
const cs_v = t.none
This discussion was converted from issue #899 on November 10, 2023 00:43.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Expected behavior
Hello,
pgp.helpers gives me insert and update but I cant see the delete function.
How can I delete an array of ids with pg-promise ?
const query = await t.none('DELETE FROM product_media WHERE id IN ...');
or how can I execute this query now ?
Beta Was this translation helpful? Give feedback.
All reactions