You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title of this issue suggests, the proper way to map foreign keys should not be based on the primary key, since most SQL databases allow more general foreign key constraints that do not require the referenced set of columns to be the primary key.
Foreign key constraints in the DB (and consequently also those in our schema) ensure that len(columns) == len(ref_columns).
This should also eliminate the limitation of our code that requires a foreign key constraint to consist only of a single column.
The text was updated successfully, but these errors were encountered:
deep-db-learning/db_transformer/data/dataset.py
Lines 270 to 279 in 393c6e2
As the title of this issue suggests, the proper way to map foreign keys should not be based on the primary key, since most SQL databases allow more general foreign key constraints that do not require the referenced set of columns to be the primary key.
Foreign key constraints in the DB (and consequently also those in our schema) ensure that
len(columns) == len(ref_columns)
.This should also eliminate the limitation of our code that requires a foreign key constraint to consist only of a single column.
The text was updated successfully, but these errors were encountered: