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
The text was updated successfully, but these errors were encountered:
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 ?
The text was updated successfully, but these errors were encountered: