Aliheym / typeorm-transactional

A Transactional Method Decorator for TypeORM that uses Async Local Storage or cls-hooked to handle and propagate transactions between different repositories and service methods.
MIT License
201 stars 27 forks source link

feat: export getTransactionalContext #42

Closed starnayuta closed 11 months ago

starnayuta commented 1 year ago

There are situations where the users want to use getTransactionalContext, such as before using initializeTransactionalContext.
https://github.com/Aliheym/typeorm-transactional/issues/26#issuecomment-1576189374

I thought getTransactionalContext should be exported.

Please merge this if you like.
thank you.