Fix collerek/ormar#588 documentation for distinct keyword to count method
This commit is contained in:
@ -8,7 +8,7 @@ and it's options.
|
||||
Most of the methods are also available through many to many relations and on reverse
|
||||
foreign key relations through `QuerysetProxy` interface.
|
||||
|
||||
!!!info
|
||||
!!!info
|
||||
To see which relations are supported and how to construct relations
|
||||
visit [relations][relations].
|
||||
|
||||
@ -34,12 +34,12 @@ To read more about any specific section or function please refer to the details
|
||||
* `Model.upsert()` method
|
||||
* `Model.save_related()` method
|
||||
|
||||
|
||||
|
||||
* `QuerysetProxy`
|
||||
* `QuerysetProxy.create(**kwargs)` method
|
||||
* `QuerysetProxy.get_or_create(**kwargs)` method
|
||||
* `QuerysetProxy.update_or_create(**kwargs)` method
|
||||
|
||||
|
||||
!!!tip
|
||||
To read more about any or all of those functions visit [create](./create.md) section.
|
||||
|
||||
@ -62,7 +62,7 @@ To read more about any specific section or function please refer to the details
|
||||
* `QuerysetProxy.get_or_create(**kwargs)` method
|
||||
* `QuerysetProxy.first()` method
|
||||
* `QuerysetProxy.all(**kwargs)` method
|
||||
|
||||
|
||||
!!!tip
|
||||
To read more about any or all of those functions visit [read](./read.md) section.
|
||||
|
||||
@ -96,7 +96,7 @@ Instead of ormar models return raw data in form list of dictionaries or tuples.
|
||||
|
||||
* `QuerysetProxy`
|
||||
* `QuerysetProxy.update_or_create(**kwargs)` method
|
||||
|
||||
|
||||
!!!tip
|
||||
To read more about any or all of those functions visit [update](./update.md) section.
|
||||
|
||||
@ -112,7 +112,7 @@ Instead of ormar models return raw data in form list of dictionaries or tuples.
|
||||
* `QuerysetProxy`
|
||||
* `QuerysetProxy.remove()` method
|
||||
* `QuerysetProxy.clear()` method
|
||||
|
||||
|
||||
!!!tip
|
||||
To read more about any or all of those functions visit [delete](./delete.md) section.
|
||||
|
||||
@ -129,7 +129,7 @@ Instead of ormar models return raw data in form list of dictionaries or tuples.
|
||||
* `QuerysetProxy`
|
||||
* `QuerysetProxy.select_related(related: Union[List, str])` method
|
||||
* `QuerysetProxy.prefetch_related(related: Union[List, str])` method
|
||||
|
||||
|
||||
!!!tip
|
||||
To read more about any or all of those functions visit [joins and subqueries](./joins-and-subqueries.md) section.
|
||||
|
||||
@ -152,7 +152,7 @@ Instead of ormar models return raw data in form list of dictionaries or tuples.
|
||||
* `QuerysetProxy.get_or_none(**kwargs)` method
|
||||
* `QuerysetProxy.get_or_create(**kwargs)` method
|
||||
* `QuerysetProxy.all(**kwargs)` method
|
||||
|
||||
|
||||
!!!tip
|
||||
To read more about any or all of those functions visit [filtering and sorting](./filter-and-sort.md) section.
|
||||
|
||||
@ -165,7 +165,7 @@ Instead of ormar models return raw data in form list of dictionaries or tuples.
|
||||
* `QuerysetProxy`
|
||||
* `QuerysetProxy.fields(columns: Union[List, str, set, dict])` method
|
||||
* `QuerysetProxy.exclude_fields(columns: Union[List, str, set, dict])` method
|
||||
|
||||
|
||||
!!!tip
|
||||
To read more about any or all of those functions visit [selecting columns](./select-columns.md) section.
|
||||
|
||||
@ -182,22 +182,22 @@ Instead of ormar models return raw data in form list of dictionaries or tuples.
|
||||
* `QuerysetProxy.paginate(page: int)` method
|
||||
* `QuerysetProxy.limit(limit_count: int)` method
|
||||
* `QuerysetProxy.offset(offset: int)` method
|
||||
|
||||
|
||||
!!!tip
|
||||
To read more about any or all of those functions visit [pagination](./pagination-and-rows-number.md) section.
|
||||
|
||||
### [Aggregated functions](./aggregations.md)
|
||||
|
||||
* `count() -> int`
|
||||
* `count(distinct: bool = True) -> int`
|
||||
* `exists() -> bool`
|
||||
|
||||
|
||||
* `QuerysetProxy`
|
||||
* `QuerysetProxy.count()` method
|
||||
* `QuerysetProxy.count(distinct=True)` method
|
||||
* `QuerysetProxy.exists()` method
|
||||
|
||||
|
||||
!!!tip
|
||||
To read more about any or all of those functions visit [aggregations](./aggregations.md) section.
|
||||
|
||||
|
||||
|
||||
[relations]: ../relations/index.md
|
||||
|
||||
Reference in New Issue
Block a user