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
Add option to specify addtional filters for joins #234
Conversation
Codecov Report
@@ Coverage Diff @@
## master #234 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 56 56
Lines 3949 3950 +1
=========================================
+ Hits 3949 3950 +1
Continue to review full report at Codecov.
|
Does it look ok and I can move forward with sql part of this? |
yes, this is make sense, please go ahead |
Can be reviewed now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Could you also tag when merged so I can update go-rel/sql PR |
how about using master first, and tag when |
Currently it's not possible to specify additional conditions for query joins (for example to specify to join only not deleted records). Only workaround for this is to use
Joinf
that's not too nice to use as it won't provide a way to do per-adapter field escaping etc.I added filter as optional last parameter and as side effect of this is that you can provide multiple filters that will be converted to
And
filter as the result.Still need to implement changes in sql, so currently marking this as WIP