Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Change deprecated sqlmodel method #20

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

2jun0
Copy link

@2jun0 2jun0 commented Jan 17, 2024

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.

Use session.exec instead of session.execute
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant