You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Hey, this is amazing ORM to NestJS and I am migrating from TypeOrm, but I am passing by a problem.
In TypeOrm have a lib typeorm-transactional that add a @Transactional, like a Spring Framework, to create transaction in database with decorator. And this do more easy work with transaction, e.g:
If any error occur inside saveUser method or RoleService, a rollback is executed, otherwise a commit is executed when saveUser finalize.
And don't need inject EntityManager and call em.begin() or em.transactional(). In addition, don't need checked if exist a transactional open because @Transactional() manage this. See Propagation and Isolation
Describe the solution you'd like
The same solution of Spring @Transactional that typeorm-transactional uses
Describe alternatives you've considered
Using AsyncLocalStorage of node to manage a context of mikro-orm and open a transaction like typeorm-transactional
Additional context
...
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Hey, this is amazing ORM to NestJS and I am migrating from TypeOrm, but I am passing by a problem.
In TypeOrm have a lib typeorm-transactional that add a
@Transactional
, like a Spring Framework, to create transaction in database with decorator. And this do more easy work with transaction, e.g:If any error occur inside
saveUser
method orRoleService
, a rollback is executed, otherwise a commit is executed whensaveUser
finalize.And don't need inject
EntityManager
and callem.begin()
orem.transactional()
. In addition, don't need checked if exist a transactional open because@Transactional()
manage this. See Propagation and IsolationDescribe the solution you'd like
The same solution of Spring
@Transactional
that typeorm-transactional usesDescribe alternatives you've considered
Using
AsyncLocalStorage
of node to manage a context of mikro-orm and open a transaction liketypeorm-transactional
Additional context
...
The text was updated successfully, but these errors were encountered: