问题
I tried, for instance:
object WebCache extends Table[(...)]("myschema.mytable") {
...
}
But that doesn't work.
回答1:
Slick now has this functionality:
object WebCache extends Table[(...)](Some("myschema"), "mytable") {
...
}
Should work.
回答2:
Got an answer from the scalaquery mailing list. This is a limitation of ScalaQuery.
This is not supported at the moment but it should be very easy to add. I've created https://github.com/szeiger/scala-query/issues/19 for this issue.
来源:https://stackoverflow.com/questions/6720626/how-do-i-specify-a-postgresql-schema-in-scalaquery