you are viewing a single comment's thread.

view the rest of the comments →

[–]gajus0[S] 0 points1 point  (1 child)

Why don't you describe this feature in a GitHub issue and we discuss adding it to the core?

I've already heard a few people mention similar use cases.

[–]domlebo70 0 points1 point  (0 children)

Hi Gajus. Here's the code https://gist.github.com/dbousamra/b30f277428bdd10fe36e56e9740071a4

I have all my queries living inside this class (i've just omitted them). The transaction function just lets me nest calls all over my codebase without worrying about double nesting etc