cldellow / datasette-ui-extras

Add editing UI and other power-user features to Datasette.
Apache License 2.0
12 stars 1 forks source link

don't enable fkey checks on _internal database #100

Closed cldellow closed 1 year ago

cldellow commented 1 year ago

dux enables foreign key constraint checking by default on every connection, as part of a prepare_connection hook.

This is a little dangerous -- since fkeys aren't checked by default, some databases may violate them. Still, let's see how far we can get with this as a default.

One issue currently is https://github.com/simonw/datasette/issues/2032 - let's exempt _internal from fkey checking