Versatile functions with transaction support

Used to be able to add tx = db as the last argument of a function. I find I'm no longer able to do that. Is there an updated pattern I should use if I want the ability to use any query I've already written inside of a transaction?
Was this page helpful?