connectionAndClose

fun connectionAndClose(): Pair<Connection, () -> Unit>

Returns a Connection and handler which closes the connection after the transaction finished.