odavid / typeorm-transactional-cls-hooked

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 and Sequelize CLS
MIT License
522 stars 86 forks source link

Feature request: make NAMESPACE_NAME exported #82

Closed r-pr closed 3 years ago

r-pr commented 3 years ago

I'd like to know whether some code is running as a result of a call to a method that was decorated with @Transactional or not, to make sure all DB updates are done only inside transactions. Now to get context I have to hard-code value of NAMESPACE_NAME (from src/common.ts) in my code, being able to import it would be helpful.