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...
Firstly, thank for your awesome lib @odavid ! In our current project we're on the way to use this lib to resolve some issues which we're facing with TypeORM core...
First of all, thank you for this library. It's a must-have. I am using nest.js to create a multi tenant application, so the module creates the connection dynamically and injects...
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
Hi there. Thx for this awesome library, but i have one question about the transactions. How to commit a transaction when using the `@Transactional () ' decorator? ```javascript @Transactional() async...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
So I'm using Jest and we are strictly doing unit tests - I used the example ``` jest.mock('typeorm-transactional-cls-hooked', () => ({ Transactional: () => () => ({}), BaseRepository: class {},...
Bumps [ws](https://github.com/websockets/ws) from 7.4.2 to 7.4.6. Release notes Sourced from ws's releases. 7.4.6 Bug fixes Fixed a ReDoS vulnerability (00c425ec). A specially crafted value of the Sec-Websocket-Protocol header could be...
I appreciate the project and am trying to use it for something slightly outside its main use case: wrap an entire Express request-response in a transaction (as in Django) and...
I setup per the documentation, but when this is called entitymanager is undefined: ``` save(entityOrEntities: T|T[], options?: SaveOptions): Promise { return this.manager.save(this.metadata.target as any, entityOrEntities as any, options); } ```...
give us a possibility to anotate the entire service class as transactional instead of only methods. and then apply it to each method of the service class;