fastapi-users-db-sqlmodel
fastapi-users-db-sqlmodel copied to clipboard
Change deprecated sqlmodel method
Use session.exec instead of session.execute
- SQLModel recommends using session.execute instead of session.exec. So, I've updated parts of the project code that used execute to now use exec.
- Accordingly, I've switched from using sqlalchemy's AsyncSession to using sqlmodel's AsyncSession.