(data-source-check-fn data-source)
(data-source-check-fn
data-source
{:keys [query success-result-fn exception-result-fn]
:or {query "SELECT 1 AS up;"
success-result-fn salutem/healthy
exception-result-fn
(fn [exception]
(if (= (class exception) SQLTimeoutException)
(salutem/unhealthy {:salutem/reason :timed-out
:salutem/exception exception})
(salutem/unhealthy {:salutem/reason :threw-exception
:salutem/exception exception})))}})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close