-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Support for compound (composite) foreign keys #117
Comments
Here's what's missing:
Compare with this code here: sqlite-utils/sqlite_utils/db.py Lines 563 to 579 in d0cdaaa
The first two columns returned by |
Relevant discussion: simonw/sqlite-generate#8 (comment) |
So there are two sides to supporting this:
|
It turns out SQLite supports composite foreign keys: https://www.sqlite.org/foreignkeys.html#fk_composite
Their example looks like this:
Here's what that looks like in sqlite-utils:
The table appears to have two separate foreign keys, when actually it has a single compound composite foreign key.
The text was updated successfully, but these errors were encountered: