Fork me on GitHub
#luminus
<
2017-07-11
>
yogthos03:07:17

The reason is to allow conman to set the transactional connection

yogthos03:07:21

the macro replaces the connection with a transactional one, and all the query functions defined by conman will then use the transactional connection without having to remember to supply it explicitly

yogthos03:07:02

I found the way transactions work to be fairly error prone since if you forget to pass the transactional connection everything will work until you need to roll back

yogthos03:07:32

another approach could be to always pass the connection explicitly to the functions which might be less confusing overall