I am trying to create a query with Slick 1.0.0 that returns the number of rows equivalent to the following SQL statement:
SELECT COUNT(*) FROM table;
What I still have:
val query = for { row <- Table } yield row println(query.length)
scala.slick.ast.FunctionSymbol$$anon$1@6860991f . In addition, query.length is of type scala.slick.lifted.Column . I cannot find a way to fulfill the request. All the examples that I can find in the documentation and elsewhere do not work on Column or ScalaQuery and no longer work.
What can I do to accomplish this?
scala slick
notan3xit
source share