Essential Slick at Scala Exchange 2015

Written by Dave Gurnell

My latest adventure in conference speaking was a two hour hands-on workshop at Scala Exchange 2015, entitled Essential Slick: Hands-On with Slick 3.

Slick is routinely difficult for new Scala developers to pick up. This workshop provides a broad overview of the main concepts in the library, with more in-depth information available in Richard and Jono’s new book.

Due to equipment difficulties we didn’t record the workshop at the conference, so I’ve included a complete screencast after the break.

Here’s what the video covers:

  • 0:00 - Introduction. Housekeeping etc.
  • 3:30 - Tables. Mapping Scala data types onto the database.
  • 23:30 - Queries. Selecting data, query types, query combinators.
  • 46:30 - Actions. Inserting/updating/deleting, sequencing actions, transactions.
  • 1:17:30 - Joins. Selecting data from multiple tables.
  • 1:34:50 - Profiles. Selecting profiles, Freeslick, writing database-generic code.

The slides and sample code can be found on Github. If you have trouble with any of the exercises or getting set up, hit me up on Gitter.