ScalaQuery



SBT


val scalaQuery = "org.scalaquery" %% "scalaquery" % "0.9.5"


[p20111231] $ console
[info] Starting scala interpreter...
[info] 
Welcome to Scala version 2.9.1.final (OpenJDK 64-Bit Server VM, Java 1.7.0-b222).
Type in expressions to have them evaluated.
Type :help for more information.

scala> import org.scalaquery.session.Database
import org.scalaquery.session.Database

scala> import org.scalaquery.session.Database.threadLocalSession
import org.scalaquery.session.Database.threadLocalSession

scala> val databbase = Database.forURL("jdbc:h2:mem:play:", driver = "org.h2.Driver")
databbase: org.scalaquery.session.Database = org.scalaquery.session.Database$$anon$2@5b314957 







Reference:
Comments