typeorm-transactional-cls-hooked
typeorm-transactional-cls-hooked copied to clipboard
A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation an...
Hey, how do you manage to use the transactional entity manager for the relation loader? When I take a look at the code, I can see that it's use this.connection.createQueryBuilder(queryRunner)...
I have a `@Transactional()` function with `runOnTransactionRollback(() => this.someRepository.save())` in it. So, when the function caught error and rejects with rollback, the `this.someRepository.save()` have called and then I receive the...
`Repository` is no longer a class but an object literal since https://github.com/typeorm/typeorm/commit/ba4bebe5d9045ec8655ca50e0e022fb606149f13 and this breaks `BaseRepository`.
Hi, By default, TypeORM only supports a global container[0], which is referenced whenever you call `getManager()`. This PR contains my potential solution but requires your services have a public `container`...
This is not an issue. Just to make a link between this library and the discussion about Common Local Storage and Transactions in TypeOrm repo available here: typeorm/typeorm#1895 Very good...
I added the @Transactional() decorator to my service and this is the error it throws `ConnectionNotFoundError: Connection "default" was not found.`
I'm using typeorm-transactional-cls-hooked in my NestJS application to manage transactions. I have a method decorated with @Transactional() where I'm trying to delete a non-existing record to force a transaction rollback....
Hi, lets say we have the following ``` @transactional(PROPAGATION.REQUIRED) create(){ // insert something to DB } ``` And the max connection limit set in typeorm is reached (lets say 2)...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2. Release notes Sourced from decode-uri-component's releases. v0.2.2 Prevent overwriting previously decoded tokens 980e0bf https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.1...v0.2.2 v0.2.1 Switch to GitHub workflows 76abc93 Fix issue where decode...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...