limit_query
LimitQuery
Modifies the select query with limit clause.
With a binder (see templates.SlotBinder) the limit is bound as
:ormar_limit, so one cached statement serves every limit value.
Source code in ormar/queryset/queries/limit_query.py
| Python | |
|---|---|
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
apply(expr)
Applies the limit clause.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
expr
|
Select
|
query to modify |
required |
Returns:
| Type | Description |
|---|---|
sqlalchemy.sql.selectable.Select
|
modified query |
Source code in ormar/queryset/queries/limit_query.py
| Python | |
|---|---|
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |