| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
📝 Docs previewLast commit a1e82c3 at: https://00ece0bc.sqlmodel.pages.dev Modified Pages |
Sorry, something went wrong.
There was a problem hiding this comment.
@cscguochang, thanks for your interest and efforts!
I think adding async docs requires more complex approach (re-exporting necessary function and types, probably adjusting some of them, explaining some concepts, writing complete code examples, all code examples should be covered by tests).
Sorry, something went wrong.
|
|
||
| ```Python | ||
| heroes = await session.execute(select(Hero)).scalars().all() | ||
| heroes = (await session.execute(select(Hero))).scalars().all() |
There was a problem hiding this comment.
We already have PR for this: #1643
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
This PR addresses Issue #626 by adding a foundational tutorial for using SQLModel with Async. It also fixes incorrect code examples in the AsyncSession.execute and AsyncSession.exec docstrings where await was used in a way that would raise an AttributeError.
Key Changes
Verified with actual execution logic.