fastapi-users-db-sqlmodel icon indicating copy to clipboard operation
fastapi-users-db-sqlmodel copied to clipboard

Change deprecated sqlmodel method

Open 2jun0 opened this issue 2 years ago • 0 comments

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.

2jun0 avatar Jan 17 '24 07:01 2jun0