Skip to content

Instantly share code, notes, and snippets.

@sifue
Created April 29, 2014 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sifue/11389831 to your computer and use it in GitHub Desktop.
Save sifue/11389831 to your computer and use it in GitHub Desktop.
Slickのコード例2
val q = (for {r .where(_.channel is target.getName)
.where(_.updateAt >= countedDate)
.groupBy(_.nickname)
val qGroup = q.map {
case (nickname, grouped) => (nickname, grouped.length)
}
val qSort = qGroup.sortBy(_._2.desc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment