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

Make TARGET() table by default for starting tables in JOIN closures #14

Closed
isuru89 opened this issue Apr 25, 2017 · 0 comments
Closed
Assignees
Milestone

Comments

@isuru89
Copy link
Contributor

isuru89 commented Apr 25, 2017

Currently starting table is mandatory for JOIN closure.

$DSL.select {
    TARGET (Film.alias("f"))
    JOIN (TARGET()) {     // specifying TARGET() is mandatory although by default it can assume
        INNER_JOIN (Film_Actor.alias("fa")) ON (f.film_id, fa.film_id)
    }
}

But it is nice to have make starting table optional, and in case user has not specified it, NyQL assumes it always joining with specified TARGET() table. New equivalent query of above.

$DSL.select {
    TARGET (Film.alias("f"))
    JOIN { 
        INNER_JOIN (Film_Actor.alias("fa")) ON (f.film_id, fa.film_id)
    }
}
@isuru89 isuru89 self-assigned this Apr 25, 2017
@isuru89 isuru89 added this to the v1.1.3 milestone Apr 25, 2017
@isuru89 isuru89 closed this as completed Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant