sample code for Typesafe SLICK overview
Running a demo script:
The following steps assume you have PostgreSQL 9.1 installed, a
indyscala user with no password, a
slick database where
indyscala has full privileges, and the world sample data from
http://pgfoundry.org/projects/dbsamples/ inserted into the
You may also change the JDBC URLs, drivers and users and passwords in the script files if your setup differs.
- Install sbt 0.12
sbt updateonce to download dependencies.
sbt consoleto start sbt with a REPL and the classpath configured.
:load scripts/plainsql/01_load_cities.scalain the REPL to run the first Plain SQL demo script.