concept dbio action in category scalatra

This is an excerpt from Manning's book Scalatra in Action.
Slick makes it possible to use a relational database from the Scala language in a type-safe way without writing SQL. A database table is described as a Table model, and Slick maps a database table to a Scala type. From a Table model, a Query can be derived, which can be further specialized and composed with other queries. A query can be turned into a DBIO action, which represents an interaction with the database. DBIO actions can be composed and are eventually executed on a Database object.
Create and run DBIO actions
The sqlu interpolator yields a DBIO action giving the number of modified rows as an Int. The sql interpolator declares its return type using the as[T] method. The DBIO action yields a Seq[T]. A query can contain variables, and each embedded variable reference is converted to a bind variable in the resulting query.
Multiple actions can be composed together to form a new action running all the statements of the single actions. One way to do this is to use the DBIO.seq method, which accepts a variable number of DBIO actions. The following listing shows an example of how to construct and run actions.