doobie

object doobie
class Object
trait Matchable
class Any

Value members

Concrete methods

def connectionCheck[F[_]](xa: Transactor[F])(timeout: Option[FiniteDuration])(`evidence$1`: MonadCancelThrow[F]): HealthCheck[F, Id]

A healthcheck that checks whether a connection produced by the transactor is valid. If timeoutSeconds is empty, there's no timeout. You should probably have a timeout, though.

A healthcheck that checks whether a connection produced by the transactor is valid. If timeoutSeconds is empty, there's no timeout. You should probably have a timeout, though.

Note: Errors aren't recovered in this healthcheck. If you want error handling, consider using HealthCheck.through with sup.mods.recoverToSick.