https://kotlinlang.org logo
a

andrewoma

10/06/2016, 9:07 PM
I think there's a couple of options. 1. Make the converter requiring a connection lazy so it only fails if a connection is actually required (which is rarely in which case you'd have to wrap it). 2. Acquire connections from DataSource eagerly - this seems problematic as it would need to release the connections and acquire and release for every field