Skip to content
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

Explicit JOINs like in ActiveAndroid #268

Open
PtiPingouin opened this issue Jun 16, 2016 · 2 comments
Open

Explicit JOINs like in ActiveAndroid #268

PtiPingouin opened this issue Jun 16, 2016 · 2 comments
Labels

Comments

@PtiPingouin
Copy link

How to perform an inner join?

@gfx
Copy link
Member

gfx commented Jun 17, 2016

How about direct associations?

@PtiPingouin
Copy link
Author

PtiPingouin commented Jun 17, 2016

I don't want to add columns to my models only to perform a join.
I managed to do it with a raw query, but that would be great to have a built-in method in the future, like in ActiveAndroid.

Maybe something like:

selectFromMyModel().innerJoin(myOtherModelRelation).on(clause, args).where(...)...

@gfx gfx added the question label Jun 21, 2016
@gfx gfx changed the title Joins Explicit JOINs like in ActiveAndroid Jun 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants