Scala quill "quote" 未解析
Scala quill "quote" not resolving
我正在尝试使用 quill for scala 编写数据库查询。 (Quill)
我正在关注他们在 quill 网站上所做的事情,但出于某种原因我无法解析 'quote' 方法和其他一些方法。
有什么想法吗?
这是我的 build.sbt:
name := "Pop"
version := "1.0"
lazy val `pop` = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.7"
libraryDependencies ++= Seq( jdbc,cache,ws,specs2 % Test,
"org.postgresql" % "postgresql" % "9.4.1208",
"io.getquill" % "quill-core_2.11" % "0.8.0",
"io.getquill" %% "quill-jdbc" % "0.8.0")
unmanagedResourceDirectories in Test <+= baseDirectory ( _ /"target/web/public/test" )
resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
来自Quill quotation introduction:
To create quotations, first create a context instance. Please see the context section for more details on the different context available.
所以在调用 quote
之前使用 import ctx._
,如文档所述,或 ctx.quote(ctx.query...)
。未能解决 ctx.run
在我看来像是一个 IDE 问题:尝试实际构建项目。
我正在尝试使用 quill for scala 编写数据库查询。 (Quill)
我正在关注他们在 quill 网站上所做的事情,但出于某种原因我无法解析 'quote' 方法和其他一些方法。
有什么想法吗?
这是我的 build.sbt:
name := "Pop"
version := "1.0"
lazy val `pop` = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "2.11.7"
libraryDependencies ++= Seq( jdbc,cache,ws,specs2 % Test,
"org.postgresql" % "postgresql" % "9.4.1208",
"io.getquill" % "quill-core_2.11" % "0.8.0",
"io.getquill" %% "quill-jdbc" % "0.8.0")
unmanagedResourceDirectories in Test <+= baseDirectory ( _ /"target/web/public/test" )
resolvers += "scalaz-bintray" at "https://dl.bintray.com/scalaz/releases"
来自Quill quotation introduction:
To create quotations, first create a context instance. Please see the context section for more details on the different context available.
所以在调用 quote
之前使用 import ctx._
,如文档所述,或 ctx.quote(ctx.query...)
。未能解决 ctx.run
在我看来像是一个 IDE 问题:尝试实际构建项目。