underscoreio / essential-slick

Essential Slick Pandoc Source

Home Page:https://underscore.io/books/essential-slick/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Essential Slick

Build Status

Creative Commons Licence
Essential Slick by Richard Dallaway, Jonathan Ferguson, Underscore Consulting LLP is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Overview

Essential Slick is a book to get you started building application using the Slick database library. It is aimed at Scala developers who need to become productive with Slick quickly.

It follows a tutorial style and includes exercises.

Download

You can download the PDF, EPUB, and HTML formats of this book for free from the book web page.

Table of Contents

  1. Basics

  2. Selecting Data

  3. Creating and Modifying Data

  4. Action Combinators and Transactions

  5. Data Modelling

  6. Joins and Aggregates

  7. Plain SQL

A. Using Different Database Products

B. Solutions to Exercises

Building the Book

This book uses Underscore's ebook build system.

The simplest way to build the book is to use Docker Compose:

  • install Docker Compose; and
  • run go.sh (or docker-compose run book bash if go.sh doesn't work).

This will open a bash shell running inside the Docker container which contains all the dependencies to build the book. From the shell run:

  • mkdir dist
  • npm install; and then
  • ./sbt.sh.

Within sbt you can issue the commands pdf, html, epub, or all to build the desired format(s) of the book.

When you build the book, you'll see Unknown link warning messages. You can ignore these (and if anyone wants to find out why they happen, do go for it).

The results are placed in the dist directory.

Writing

  • Essential Slick uses mdoc to check the Scala code on the book.
  • The source files are in src/pages.
  • The converted sources are output to target/pages.

About

Essential Slick Pandoc Source

https://underscore.io/books/essential-slick/


Languages

Language:TeX 55.7%Language:HTML 26.8%Language:Shell 9.6%Language:Scala 6.9%Language:CoffeeScript 1.0%Language:Less 0.1%