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

How to get transactionId? #43

Closed JayStevency closed 10 months ago

JayStevency commented 1 year ago

How do I know which id I can identify when a transaction is executed?

Aliheym commented 11 months ago

Hi, sorry for the long delay.

As far as I know, TypeORM doesn't have an option to get transaction id using its API, but you can make a regular sql query to get this id.