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

Possibility to prepare joins manually #14

Open
wiktor-obrebski opened this issue Feb 14, 2017 · 0 comments
Open

Possibility to prepare joins manually #14

wiktor-obrebski opened this issue Feb 14, 2017 · 0 comments

Comments

@wiktor-obrebski
Copy link

SqlDust help you with "joins specifications" and it's cool.
But you sometimes can't (or just don't want) modyfing your database to follow conventions used by SqlDust.

It would be nice to make this auto-joins optional and allow developer to specify joins manually - and simple way to make manual joins. Additionally it would cover lack of "LEFT/RIGHT/INNER" join options.

I would love it to looks like this:

select(["id", "state.name"])
 |> from("city")
 |> join_on("state", "state.id = city.stateId", "RIGHT")
 |> adapter("postgres")
 |> to_sql

# or

select(["id", "state.name"])
 |> from("city")
 |> right_join("state", "state.id = city.stateId")

We spoke about this on email and I can't wait to see this in SqlDust :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant