WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

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