typeorm-transactional
typeorm-transactional copied to clipboard
A Transactional Method Decorator for TypeORM that uses cls-hooked to handle and propagate transactions between different repositories and service methods.
Thanks for the awesome library! In AWS serverless environment, The DataSource has to be destroyed when the lambda request finishes and re-initialize on lambda warm-start in order to reduce the...
[x] NestJS [x] TypeORM I have use jest to test function with Transactional decorator then I following these [step](https://www.npmjs.com/package/typeorm-transactional#unit-test-mocking) to mock transaction for unit test mocking and get error from...
Hi there, thanks for the package! It really is super useful. My issue is that we can't run our E2E tests with it as of now. We get the console...
While I see that there is a nice way to mock `@Transactional` (and other functions) with Jest, we have a large code base using Mocha. So switching over to Jest...
I have a method decorated with @Transactional() where I'm trying to delete a non-existing record to force a transaction rollback. However, even though I see a log message indicating that...
I have multiple insert, delete, and update actions within several interceptors of a controller. I put the @Transactional on the controller, but it doesn't work with the interceptors.
Hi, @Aliheym, thank you for making this library. I have one issue about this library. The @Transactional() decorator doesn't seem to work. It doesn't roll back when an action fails....
## Description Allow using `@Transactional()` decorator with the entire class (apply to all methods). This decorator needs to have the same interface as the existing one. We also need a...
Hello, Using this library with the following NestJS [configuration](https://docs.nestjs.com/recipes/hot-reload) (Webpack's Hot Module Replacement) makes the following error appear when reloading the app.  This doesn't break the app but is...
Currently I have this on my NestJS application on the controller level Controller level: ```javascript @Controller('supplier') export class SupplierController { constructor(private readonly supplierService: SupplierService) {} @Transactional() @Post() async create(@Body() createSupplierDto:...