-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Bi-Directional Foreign Keys (#63)
Added Bi-Directional Foreign Keys The foreign constraint database info is read into ForeignKey. Each column is provided with its foreign key definition. `Table` exposes tables it references and other tables that reference it. Table also exposes all columns it owns that are foreign keys. `Column` exposes both the other columns it references and other columns that reference it. The structure defines column level foreign keys as `ForeignKeyColumn` and table level foreign keys as `ForeignKey`. ForeignKey holds a slice of all mapped `ForeignKeyColumns`. This will allow easy iteration of the columns included in a `ForeignKey` at the table level.
- Loading branch information
1 parent
80d3e58
commit a894efd
Showing
8 changed files
with
660 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.