Commit Graph

8 Commits

Author SHA1 Message Date
06c3bdb5eb Iterators QuerySet Method (#688)
* feat: add iterator function with sample docstring

* feat: implement the iterator queryset method

* feat: completed the docstring of iterator method

* test: write test function to check iterator result

* refactor: use iterate method instead fetch_all

* fix: debuging syntax error in kwargs of iterator

* feat: write a base sample doc for iterator method

* refactor: add ouput comment iterator docs example

* refactor: check change pk yield ormar model

* test: write new test to coverage iterator queryset

* fix: debuging new user model class 3 number

* fix: iterate on user3 model class

* fix: debug id field in user3 model by main user

* fix: remove prefetch_related for iterator method

* fix: debug mypy test for type annotation

* fix: added type annotation for rows variable

* simplify row checks as processing is expensive, raise exception on prefetch_related with iterator

* fix coverage

* fix mypy, bump mypy in pre-commit to newest version

* refactor: update document and test uuid pk type

* feat: write docs of iterate in quesrysetproxy

* feat: write iterate method querysetproxy tests

* fix: debuging new test written uuid pk

* refactor: seperate iterate test modules

* refactor: change description and handle empty set

* feat: added iterate method in readme files

* fix: set pragma: no cover for raised test

Co-authored-by: collerek <collerek@gmail.com>
2022-07-04 12:41:28 +02:00
8376b6635e Merge pull request #557 from MojixCoder/master
Update get_or_create method
2022-03-28 13:04:55 +02:00
11e6f1eecd Fix collerek/ormar#588 documentation for distinct keyword to count method 2022-03-17 14:10:59 -04:00
0791e7cc4b Update docs 2022-02-01 10:28:11 +03:30
0ea9b0952c add default exceptions to relations, test one argument, test querysetproxy, test deeply nested 2021-03-09 10:13:51 +01:00
a8ae50276e update docs, add load_all(), tests for load_all, make through field optional 2021-03-03 19:48:40 +01:00
95385425fe update the dosc with split of queries, fix tests 2021-01-29 11:17:43 +01:00
2e7cad722b reorganize docs into sections for easier navigation part 1 2020-12-10 18:10:08 +01:00