Re:Show HN: ORM for TypeScript with no query-builder, suppor...
by twodave on Thursday September 03, 2020 @08:32PM
(#24370505)
Another interesting way to solve the transaction problem is following more of a Unit of Work pattern. Then the transaction is more or less held until the unit is committed. Or rolled back. This is also wonderful for writing integration tests because your repositories all contribute to the same UoW and your test can just roll back when itβs finished to return to a clean state.
[ Parent
| on HN ]
There are no comments on this comment yet.