sql-streams icon indicating copy to clipboard operation
sql-streams copied to clipboard

Track resources to close

Open bendem opened this issue 8 years ago • 1 comments

Keep track of all resources that get opened by the library to make it easier on the user to close them all.

That'll reduce the amount of try with resources needed making the code clearer and more concise.

There still needs to be a way for users who want to cache their statements for w/e reason to do so.

bendem avatar Jul 08 '17 11:07 bendem

Just tried integrating sql-streams with spring, this feature is much needed. Try-with-resources is not good enough and causes a lot of pain to the user. I want this thing to be pluggable into a transaction API, and when the transaction gets closed, everything that got opened for that transaction gets closed with it.

bendem avatar Oct 22 '17 16:10 bendem