I have a set of simple case classes, each of which have a number of properties that are Optional:
case class Person (name: Option[String], age: Option[Int], etc)
When all case class properties are provided (not-None) the slick update code works fine - I just use the case class instance in the update query.
The question is, there are many cases which any combination of properties might be None. I don't want to write a specific update query method for each combination.
How do I use a case class in an slick update query so slick only updates the non-None property values in the table and leaves the others intact (not trying to set them to null)?