This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-07-15
Channels
- # announcements (2)
- # babashka (27)
- # beginners (53)
- # boot (3)
- # calva (5)
- # cider (1)
- # clj-kondo (46)
- # cljdoc (38)
- # cljs-dev (40)
- # cljsrn (1)
- # clojars (5)
- # clojure (61)
- # clojure-europe (124)
- # clojure-germany (3)
- # clojure-losangeles (6)
- # clojure-nl (12)
- # clojure-uk (11)
- # clojurescript (44)
- # clojureverse-ops (7)
- # datomic (13)
- # events (3)
- # introduce-yourself (1)
- # jackdaw (5)
- # lsp (115)
- # malli (1)
- # off-topic (16)
- # polylith (2)
- # releases (1)
- # remote-jobs (6)
- # shadow-cljs (10)
- # sql (2)
- # timbre (1)
- # tools-deps (30)
- # vim (34)
- # xtdb (20)
Hello, I'm trying to get the transaction state, getTransactionState
from a Postgres PgConnection
that is wrapped in a HikariProxyConnection
, but it throws
No matching field found: unwrap for class com.zaxxer.hikari.pool.HikariProxyConnection
I've checked the source for HikariProxyConnection
which extends ProxyConnection
and which in turn does implement unwrap.
The following is what I would like to run successfully,
(.getTransactionState (.unwrap (jdbc/get-connection (config/db-spec))))
P.S. This is for some logging while debugging an impenetrable race condition where starting a read-only transaction throws Cannot change transaction read-only property in the middle of a transaction.