Slickにテーブル定義があります:
object ADB {
extends BaseDB[A]("a")
with PostgresDriver{
def id = column[Long]("id", O.PrimaryKey)
def name = column[String]("name")
...
def * = id ~ name ~ ... <> (A.apply _, A.unapply _)
def forSelect = id ~ name
}
forSelect
を照会する際に参照することはできA
ますか?
forSelect
将来的にトレイトにプッシュできるように、選択するフィールドのリストを 1 か所に保持したいと考えています。