开发者

How do I specify a Postgresql schema in ScalaQuery?

I 开发者_如何学运维tried, for instance:

object WebCache extends Table[(...)]("myschema.mytable") {
  ...
}

But that doesn't work.


Slick now has this functionality:

object WebCache extends Table[(...)](Some("myschema"), "mytable") {
  ...
}

Should work.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜