How to read from two databases at the same time with ScalikeJdbc
By Alvin Alexander. Last updated: February 15 2019
This example shows how to connect-to and read-from multiple databases with ScalikeJdbc (a Scala JDBC library). I assume you already know how to use ScalikeJdbc with one database, so I’m only going to show the code and configuration file. (I’m not going to explain the details.)
The ScalikeJdbc configuration file
My ScalikeJdbc code is in an SBT project, so the ScalikeJdbc configuration file is at src/main/resources/application.conf: