我找到了一个写在里面的Rogue
代码
Rogue is a type-safe internal Scala DSL for constructing and executing find and modify commands against MongoDB in the Lift web framework
我发现编写的代码scala
是查询以获取数据
我想将该代码转换为mysql
查询
def getBlogScore(word: String, blog: String): Long = Keyword.where(_.word eqs word).and(_.blog eqs blog)
.fetch.map(_.score._1)
.reduceLeftOption(_ + _).getOrElse(0)
给我一些想法!