Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't enable fkey checks on _internal database #100

Closed
cldellow opened this issue Mar 2, 2023 · 0 comments
Closed

don't enable fkey checks on _internal database #100

cldellow opened this issue Mar 2, 2023 · 0 comments

Comments

@cldellow
Copy link
Owner

cldellow commented Mar 2, 2023

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 simonw/datasette#2032 - let's exempt _internal from fkey checking

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant