Open kingmesal opened 1 year ago
Duplicate of #23?
Why would foreign key definitions be a duplicate of join syntax ?
Foreign keys are not required to provide join support.
It seems great. 👍
Are you planning to add support for the foreign keys and join syntax to build relationships with this ORM?
Would be awesome to fetch things more easily this way.
Are you planning to add support for the foreign keys and join syntax to build relationships with this ORM?
Would be awesome to fetch things more easily this way.
@chrisspiegl
Pulls welcome 😃
Adding on to #53 ...
For foreign keys there are a number of options a foreign key may have, but from a definition standpoint adding the foreign key to the column definition make the most sense as each column may only reference a single foreign column.
What I propose is the following:
I think this approach is fairly straight-forward and easy to follow.
Thoughts?