The first thing that we need to learn is how to configure Record to create a connection to a database. The database that we will use to build the example and explain how Record works, is PostgreSQL.
Before we can get started, we need to create a new project and carry out basic steps, such as creating a database and a new user.
build.sbtfile to add the
PostgreSQLdriver dependencies, as shown in the following code:
"net.liftweb" %% "lift-squeryl-record" % liftVersion % "compile", "org.postgresql" % "postgresql" % "9.2-1003-jdbc4" % "compile"