This compiles:
val table1 = TableQuery[Table1]
val table2 = TableQuery[Table2]
val query = for {
(t1, t2) <- table1 joinLeft table2 on (_.dsType === _.dsType)
} yield (t1, t2)
This does not compile:
val table1 = TableQuery[Table1]
val table2 = TableQuery[Table2]
val query = for {
(t1, t2) <- table1 joinLeft table2 on (_.dsType === _.dsType && _.dsSk === _.dsSk)
} yield (t1, t2)
What's the syntax to add two conditions to joinLeft
?