Search code examples
scalaquery

How do I specify a Postgresql schema in ScalaQuery?


I tried, for instance:

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

But that doesn't work.


Solution

  • Slick now has this functionality:

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

    Should work.