I'm new to Slick and have have been unable to answer this seemingly simple question after reading through the 3.0.0 docs. I'm interested in counting the number of rows in a table, which in SQL would look like:
select count(*) from table;
In Slick 2 I can do something like this:
val countQuery: Column[Int] = coffees.length
val count: Int = countQuery.run
The Slick 3 docs give an example:
in this case q1 has type
and after reading through
http://slick.typesafe.com/doc/3.0.0/queries.html and various other sources, I still can't figure out how to get an
value from this.