Reputation: 12601
Is there anyway to update column based on other column value in Slick2. In sql I would do it like this:
UPDATE table SET columna = columnb WHERE appropriate = true
Upvotes: 0
Views: 619
Reputation: 4320
Yes, but not using the "lifted embedded" (Scala collections style) of Slick.
You can:
sqlu
interpolator) to write your SQL to get that effect.For the lifted-embedded style, Slick issue 497 is worth tracking, as that's probably closest to the change you need.
Upvotes: 1