Quantcast
Channel: read
Viewing all articles
Browse latest Browse all 10

How to read from two databases at the same time with ScalikeJdbc

$
0
0

How to read from two databases at the same time with ScalikeJdbc

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:


Viewing all articles
Browse latest Browse all 10

Trending Articles