Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Created February 16, 2016 07:28
Show Gist options
  • Save erangaeb/3c5b7dd5a27d8410b53b to your computer and use it in GitHub Desktop.
Save erangaeb/3c5b7dd5a27d8410b53b to your computer and use it in GitHub Desktop.
Slick database connect
try {
val database = Database.forURL(databaseUrl, databaseUser, databasePassword, null, databaseDriver)
database.createSession()
} catch {
case e: Exception =>
log.error(e.toString)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment