Mapping Slick query to default projection after modifying column value
问题 When creating a table query, I would like to modify my select statement by mapping the default table query. However, I cannot find a way to map the value of a column and still map to my case class case class MyRecord(id: Int, name: String, value: Int) class MyTable(tag: Tag) extends Table[MyRecord](tag, "MYTABLE") { def id = column[Int]("id") def name = column[String]("name") def value = column[Int]("value") def * = (id, name, value) <> (MyRecord.tupled, MyRecord.unapply) } lazy val