Closed abizer closed 6 years ago
Oh lol, I thought we closed them again, but it makes some sense we don't since we just return a connection that is never actually closed anywhere. That does sound like a good idea to have something to close the connections when they are done.
I'll put it on my todo list to start upgrading the API across the codebase.
Alright, I've opened an issue in #108, since I think that's a bit of a separate issue, but definitely one that should be addressed sometime.
This is fine, but eventually we should take the opportunity to fix this API. Currently it's really hard to write correct code which closes connections as you'd expect; a better API would be something like this:
Then usage is like this:
Currently we never call close on the connections we open.