Skip to content

Add FOREIGN KEY constraints to CREATE TABLE statement #252

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

Merged
merged 7 commits into from
Apr 1, 2025

Conversation

dey4ss
Copy link
Member

@dey4ss dey4ss commented Mar 9, 2025

This PR allows to specify foreign keys during table creation, both as an own table element or as a column constraint.

The grammar conforms to Postgres (https://www.postgresql.org/docs/17/sql-createtable.html#SQL-CREATETABLE-PARMS-REFERENCES) and the SQL standard.

@dey4ss dey4ss requested a review from Bouncner March 9, 2025 17:24
@dey4ss dey4ss merged commit 87e6eac into main Apr 1, 2025
4 checks passed
@dey4ss dey4ss deleted the dey4ss/foreign-keys branch April 1, 2025 21:03
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

Successfully merging this pull request may close these issues.

2 participants