开发者

How do I specify a Postgresql schema in ScalaQuery?

开发者 https://www.devze.com 2023-03-21 06:20 出处:网络
I 开发者_如何学运维tried, for instance: object WebCache extends Table[(...)](\"myschema.mytable\") {

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

精彩评论

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