Created
February 16, 2016 07:28
-
-
Save erangaeb/3c5b7dd5a27d8410b53b to your computer and use it in GitHub Desktop.
Slick database connect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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