valderman / selda

A type-safe, high-level SQL library for Haskell
https://selda.link
MIT License
478 stars 58 forks source link

Add note to `withoutForeignKeyEnforcement` encouraging deferred constraints. #131

Closed alexmingoia closed 4 years ago

alexmingoia commented 4 years ago

This adds a note to the comment for withoutForeignKeyEnforcement encouraging use of deferred foreign key constraints.

Relates to #57

valderman commented 4 years ago

Sounds reasonable to me. It might be even better to fix the migrations to use deferred constraints and get rid of this altogether, but that'd require quite a bit of work I think.