Does Scala slick have timeout setting?

久未见 提交于 2019-12-11 09:25:50

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/20803170/does-scala-slick-have-timeout-setting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!