fastapi-async-sqlalchemy
fastapi-async-sqlalchemy copied to clipboard
FastAPI Async SQLAlchemy middleware
I'am using a Azure PostgreSql with a managed identity. This means, the password is a bearer token which expires after 4 hours. I need to fetch a new token once...
How to listen SQLAlchemy events like before insert or after insert using this package?
Before in 0.5 our team used: ```python def get_db(self) -> DBSessionMeta: return self.db ``` Now in 0.6 we have to use: ```python def get_db(self) -> Any: return self.db ``` This...
1. Hello, th for you work. How get new connection object for using asyncio.gather ? 2. How get engine object from any place ?
In v.5 it was easy to use this with celery without having to recreate fastapi app (which isn't needed for celery) To do this we would Moneky patch the _Session...