You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Problem
* FastAPI-SQLA is not compatible with [SQLModel](https://sqlmodel.tiangolo.com/).
## Solution
* Instantiate an SQLModel session if sqlmodel can be imported.
* SQLAlchemy's `sessionmaker` expect a `class_` argument and because
SQLModel's Session inherits from SQLAlchemy's Session, it just works.
Also:
* Move `fastapi_sqla.models.Base` to `fastapi_sqla.sqla`: It is not a
model but the SQLAlchemy declarative base.
0 commit comments