I was reading the SQueryL documentation on updating and I saw:
update(songs)(s =>
where(s.title === "Watermelon Man")
set(s.title := "The Watermelon Man",
s.year := s.year.~ + 1)
)
I had a hard time finding the ~ method from the SQueryL source code and the linked documentation obviously doesn’t tell me what it does either. Does anyone care to explain?
I recall reading about the tilde operator not too long ago on the Schema Definition Page.
It is about disambiguating between a primitive and a custom type, although (as I am just beginning to learn Scala) it still sounds a bit vague to me ;). To quote a little piece
Hope that helps.