Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i get Transaction to work ? Getting ConnectionNotFound error #116

Open
Caesarsage opened this issue Feb 15, 2023 · 5 comments
Open

Comments

@Caesarsage
Copy link

Caesarsage commented Feb 15, 2023

I added the @transactional() decorator to my service and this is the error it throws

ConnectionNotFoundError: Connection "default" was not found.

@szymon-mutuu
Copy link

I think this one is pretty serious. Was investigating it today half a day. The thing is that ConnectionManager got deprecated in 3.0.0 (https://github.com/typeorm/typeorm/blob/master/CHANGELOG.md#030-2022-03-17) and apparantly it is no longer in use and typeorm-transactional-cls-hooked relays on ConnectionManager. So I think the only option is to handke new DataSource (if possible)...

@szymon-mutuu
Copy link

and I love the simplicity of typeorm-transactional-cls-hooked. Some alternatives I've seen require quite a lot of boilerplate.

@santimakci
Copy link

Same error

@Caesarsage
Copy link
Author

Sadly, I don't think this repo is still being maintained.

You can check out https://github.com/Aliheym/typeorm-transactional

It's a forked from this repository

Same error

@ciekawy
Copy link

ciekawy commented Feb 22, 2024

Meanwhile this motivated me to try prisma and I'm happy so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants