The Slick database library for Scala has the concepts of actions. An example is the upsert action for updating or inserting a row. I’ll illustrate upsert in this post. However, the bigger picture is that actions compose, which is explained via a custom kind of upsert and the “create or get” pattern for rows. Built […]

Read more