Slick 3.0.0 - update row with only non-null values
问题 Having a table with the columns class Data(tag: Tag) extends Table[DataRow](tag, "data") { def id = column[Int]("id", O.PrimaryKey) def name = column[String]("name") def state = column[State]("state") def price = column[Int]("price") def * = (id.?, name, state, price) <> ((DataRow.apply _).tupled, DataRow.unapply) } I'd like to write a function that would select a single row, and update the columns where the supplied values are not null. def update(id: Int, name: Option[String], state: Option