Liking cljdoc? Tell your friends :D

salutem.check-fns.data-source.core


data-source-check-fnclj

(data-source-check-fn data-source)
(data-source-check-fn
  data-source
  {:keys [query-sql-params query-opts query-results-result-fn
          exception-result-fn]
   :or {query-sql-params ["SELECT 1 AS up;"]
        query-opts {:builder-fn jdbc-rs/as-unqualified-kebab-maps}
        query-results-result-fn (fn [_ results]
                                    (salutem/healthy (first results)))
        exception-result-fn (fn [_ exception]
                                (salutem/unhealthy
                                  {:salutem/reason (failure-reason exception)
                                   :salutem/exception exception}))}})

failure-reasonclj

(failure-reason exception)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close