Lets say i want to execute the query:
select columnName1,columnName2,Sum(*)
from table
group by columnName1,columnName2
where columnName1,columnName2 is supplied from list[string] ("columnName1",columnName2")
how can i do it with slick? if the columns are known by compile time, i can easily use the groupBy function:
tableQuery.groupBy { r => (r.columnName1,r.columnName2)}.map (case groupName,group) => (groupName._1,groupName._2,group.map(...).avg)}
but what about dynamic?