SQLite Forum

How should RETURNING work with a cascading delete?
Login
> I've wished for a way to find out the effects of CASCADE many times,
> but across the board, in any table, not just for self-referential FKs.

Perhaps [the session extension](https://sqlite.org/sessionintro.html) or [the pre-update hook](https://sqlite.org/c3ref/preupdate_count.html) could be useful?