How do I specify a Postgresql schema in ScalaQuery?

ⅰ亾dé卋堺 提交于 2019-12-23 11:15:07

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!