sqlmodel icon indicating copy to clipboard operation
sqlmodel copied to clipboard

📝 Fix async example in `session.execute()` docstring & deprecation message

Open DanielLeviLucas opened this issue 1 month ago • 0 comments

This PR fixes a mistake in docstring and deprecation message of AsyncSession.execute() (we should await execute method and only then call scalars):

heroes = await session.execute(select(Hero)).scalars().all()

DanielLeviLucas avatar Nov 11 '25 16:11 DanielLeviLucas