Tag: scalaquery

斯卡拉光滑的方法到目前为止我不明白

我试图理解一些油滑的作品和它需要的东西。 这里是一个例子: package models case class Bar(id: Option[Int] = None, name: String) object Bars extends Table[Bar]("bar") { def id = column[Int]("id", O.PrimaryKey, O.AutoInc) // This is the primary key column def name = column[String]("name") // Every table needs a * projection with the same type as the table's type parameter def * = id.? ~ […]