h0rn3t / fastapi-async-sqlalchemy

FastAPI Async SQLAlchemy middleware
MIT License
136 stars 10 forks source link

DBSessionMeta no longer convieniently exposed. #18

Open bazylhorsey opened 7 months ago

bazylhorsey commented 7 months ago

Before in 0.5 our team used:

    def get_db(self) -> DBSessionMeta:
        return self.db

Now in 0.6 we have to use:

    def get_db(self) -> Any:
        return self.db

This is due to recent changes to middleware.py because the method now has internalized classes.