-
Notifications
You must be signed in to change notification settings - Fork 73
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 one-to-many relationships #10
Comments
I have been thinking about this. I'll see if I can make something within the next week or so. |
👍 This would be a great addition |
@kbrabrand Did you get anywhere with this? I think this should work: SELECT COUNT(`potential_column`) AS `hasSameValues`
FROM `someTable`
GROUP BY `potential_column`
HAVING `hasSameValues` > 1
LIMIT 1; Currently we find all columns which matches the name of some other table (eg, If we in this step run the query to find out if there are duplicate values, then we should be able to assume that going the other way ( I'll start implementing this, unless you already have something in progress? |
I got as far as writing that query, but no more than that.. 😔 It derailed when I took down a server doing a dump |
Haha, alright. I'll take a look :-) |
We currently support one-to-one, but we should definitely also support one-to-many.
The text was updated successfully, but these errors were encountered: