scala - want to know better way of joining tables with slick -


i have sample query slick below:

val query =   (for {     (company,loc) <- company leftjoin location  on (_.locid === _.id)     (_,typeof) <- company leftjoin types on (_.typeid === _.id)   } yield (company, loc, typeof)) 

is better way multiple joins?

i have tried suggestions in multiple joins slick resulting in errors.

this working fine.

for {     ((company,geo),typeof) <- company          leftjoin location on (_.locid === _.id)          leftjoin business_levels on (_._1.typeid === _.id) } 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -