I'm trying to write database queries with quill for scala. (Quill)
I'm following what they're doing on quill's website but for some reason I cannot resolve the 'quote' method and a few others.
Any ideas?
Here's my 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"
From Quill quotation introduction:
So use
import ctx._
before callingquote
, as documentation does, orctx.quote(ctx.query...)
. Failure to resolvectx.run
looks like an IDE problem to me: try to actually build the project.