Reputation: 1707
I noticed in Play! there are couple of settings I can put in application.conf to specify the connection timeout. Since Play! directly leverages Scala slick, I thought there should be similar settings in Scala slick as well, however I cannot find any reference for it so far. I would be surprised if it is unavailable yet.
Upvotes: 2
Views: 1379
Reputation: 11270
IIRC you configure the connection pool with the Play settings. If you use Slick with a connection pool (Database.fromDataSource
) you can configure the timeout in the connection pool. It's nothing Slick specific.
Upvotes: 1