Adds possibility to use the USING keyword in a delete query. This way, you can add an extra security check before deleting a record.
For example, the table you want to delete from is has an ID as foreign key, but you want to check on a unique identifier as well, which is only present in the referenced table:
DELETE FROM playlist
USING song
WHERE
playlist.song_id = song.id AND
song.id = 123 AND
song.uuid = 'some-song-uuid'
You can use either one or multiple tables in the Using() builder:
Adds possibility to use the
USING
keyword in a delete query. This way, you can add an extra security check before deleting a record. For example, the table you want to delete from is has an ID as foreign key, but you want to check on a unique identifier as well, which is only present in the referenced table:You can use either one or multiple tables in the
Using()
builder: