underscoreio / essential-slick

Essential Slick Pandoc Source
https://underscore.io/books/essential-slick/
39 stars 8 forks source link

Mention asColumnOf #132

Open d6y opened 7 years ago

d6y commented 7 years ago

E.g., useful for comparing a ID[T] against a primitive type if you need to. Perhaps when converting a schema to have improved types over time.

http://stackoverflow.com/questions/41465003/compare-mappedto-with-raw-type-in-slick-query/42069543#42069543

d6y commented 7 years ago

Also for running string extension methods on optional strings: https://stackoverflow.com/a/45409859/154248

d6y commented 5 years ago

NB: as Slick 3.3.0, there's a mapping in place for string extension methods. E.g., if your column is an Option[String] you can now just like that or whatever. Fact check needed!