Open lefnire opened 3 years ago
I'm afraid not directly at present, but I'd be happy to go along with it if someone were willing to write up a pull request.
Thanks for the reply. I'll try the main doc's get_db()
approach first & see how it suites me, and if I end up wanting to go the fastapi-sqlalchemy path I'll submit a PR. Hopefully someone gets to it before me
Pull request #47 adds this functionality.
Pull request #47 adds this functionality.
God, this warehouse seems to have been out of maintenance for 3 years, and it's really difficult to find middleware for FASTAPI+sqlalchemy. I found one in the past two days, but there is also a bug
https://github.com/h0rn3t/fastapi-async-sqlalchemy/issues/17
Hey, so I have actually packaged it and it's available using fastapi-sqlalchemy-improved on pypi.
Is there a way to add two database connections via the middleware? Slighty edge case, but I'll dealing with a psql and a MySQL for my project