Dynamic query parameters in Slick (sorting)
问题 I'm trying to convert anorm queries to slick in one of Play 2.3 samples, but I'm not sure how to implement dynamic sorting. This is the original method: def list(page: Int = 0, pageSize: Int = 10, orderBy: Int = 1, filter: String = "%"): Page[(Computer, Option[Company])] = { val offest = pageSize * page DB.withConnection { implicit connection => val computers = SQL( """ select * from computer left join company on computer.company_id = company.id where computer.name like {filter} order by