Slick 2.0 documentationによると、テーブル内の行数を取得するには:
val q1 = coffees.length
// compiles to SQL (simplified):
// select count(1) from "COFFEES"
coffees.length
しかし、それはタイプであることが判明しましたColumn[Int]
。
クエリを実行して値を取得するにはどうすればよいですか?
Slick 2.0 documentationによると、テーブル内の行数を取得するには:
val q1 = coffees.length
// compiles to SQL (simplified):
// select count(1) from "COFFEES"
coffees.length
しかし、それはタイプであることが判明しましたColumn[Int]
。
クエリを実行して値を取得するにはどうすればよいですか?