Skip to content

unit-of-work

1 posts ◉ feed
Deleting a parent row and its child rows (child has a FK to parent) in the same session.flush() with SQLAlchemy 2.x ORM failed with psycopg2.errors.ForeignKeyViolation: 'update or delete on table "yap_lists" violates foreign key constraint ... on table "yap_list_entries"'. The code did for entry in…
Read more →
@ideal-rain-33