Search code examples
scalahikaricpquill

How to check if database and connection to it is working well with hikaripool or quill?


I am working with stack: scala, hikari-pool, quill, postgres. Are there any build-in instruments in hikari-pool/quill to check if connection is valid and database is ok?


Solution

  • You need to set the hikaricp.connectionTestQuery property in the HikariCP config to "SELECT 1".