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
Post a Comment