Using Slick 3, I want to update my row depending on the property provided by the user. Say, I have 2 properties email and name. If email and name are provided I will update both properties in the database. If either one is provided I will only update the one provided and leave the other untouch.
I found what I want here,
Conditonally UPDATE fields with Slick String interpolation
but I do not want to manipulate the query string directly. Is this the only way? I prefer to use filter
and update
methods. Thanks