Skip to content

Commit f454edd

Browse files
committed
💅
1 parent dbcc1e0 commit f454edd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ To learn more about `SQLAlchemy` sessions:
2424
* [Session Basics](https://docs.sqlalchemy.org/en/20/orm/session_basics.html#)
2525

2626

27-
## Session dependency
27+
## `fastsqla.Session` dependency
2828

2929
::: fastsqla.Session
3030
options:
3131
heading_level: false
3232
show_source: false
3333

34-
## Session context manager
34+
## `fastsqla.open_session` context manager
3535

3636
::: fastsqla.open_session
3737
options:

src/fastsqla.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ async def paginate(stmt: Select) -> Page:
315315
"""A dependency used in endpoints to paginate `SQLAlchemy` select queries.
316316
317317
It adds `offset`and `limit` query parameters to the endpoint, which are used to paginate.
318-
The model returned by the endpoint is a `Page` model, which contains the data and
318+
The model returned by the endpoint is a `Page` model. It contains a page of data and
319319
metadata:
320320
321321
```json
@@ -380,5 +380,4 @@ async def list_heros(paginate: Paginate, age:int | None = None):
380380
stmt = stmt.where(Hero.age == age)
381381
return await paginate(stmt)
382382
```
383-
384383
"""

0 commit comments

Comments
 (0)