Hey, thanks for doing this comparison. Here's some idea about how to improve on one of the FIXMEs.
An alternative, if you do want to keep the DSLContext.connection(c -> { ... }) idiom in place would be to use DSLContext.connectionResult(c -> DSL.using(...).selectFrom(...).where(...).fetch(...)) instead, then you could get rid of that AtomicReference workaround.
Hey, thanks for doing this comparison. Here's some idea about how to improve on one of the FIXMEs.
An alternative, if you do want to keep the
DSLContext.connection(c -> { ... })
idiom in place would be to useDSLContext.connectionResult(c -> DSL.using(...).selectFrom(...).where(...).fetch(...))
instead, then you could get rid of thatAtomicReference
workaround.Hope this helps, Lukas