slick-pg
slick-pg copied to clipboard
Support `JOIN LATERL`
The definition of join lateral
The subquery specified on the RIGHT SIDE of the JOIN is evaluated for each row on the LEFT side of the JOIN.
It was release with v9.3, would be really handy to handle queries like "top N records of each category".
Did some trying in branch lateral. But not successful yet.
I looked at this a while ago as well. I think this is best done in Slick proper as a different join type as there are a few compiler phases which will get in the way.