3 ms·
I agree. I usually have a "model" package abstracting the database access behind functions accepting a transaction. But since I'm using the max open connections
by marvinblum 6y ago
I agree. I usually have a "model" package abstracting the database access behind functions accepting a transaction. But since I'm using the max open connections for all tests, I can be pretty confident I don't have open transactions somewhere, so I often take the shortcut and just query on "db" directly.