We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 941c9d2 commit e5fb670Copy full SHA for e5fb670
1 file changed
README.md
@@ -90,7 +90,7 @@ def example(session: Session = Depends()):
90
91
@router.get("/async_example")
92
async def async_example(session: AsyncSession = Depends()):
93
- return await session.execute("SELECT now()").scalar()
+ return await session.scalar("SELECT now()")
94
```
95
96
#### Using a context manager
@@ -121,7 +121,7 @@ def run_bg():
121
122
async def run_async_bg():
123
async with asyncio_support.open_session() as session:
124
- await session.execute("SELECT now()").scalar()
+ await session.scalar("SELECT now()")
125
126
127
### Pagination
0 commit comments