Commit Graph

30 Commits

Author SHA1 Message Date
eea2ba0bef Correct spelling mistakes (#1163)
Co-authored-by: collerek <collerek@gmail.com>
2023-08-15 11:56:19 +02:00
991d4a2a2c Referential Actions Enum Class (#735)
* feat: add action enum class to referential actions

* feat: write validation func for action name string

* test: write test for validation referential action

* fix: backend database running for action test

* fix: set the string type of value enum class

* fix: debuging return statement type for validation

* fix: return non empty for empty action

* refactor: change in line return if statement

* fix: add iterate method in read document md

* fix: update foreign key docstring types

* docs: write documention of refernal actions

* docs: complete referential actions descriptions

* refactor: rename and reposition referential action

* refactor: change validate referential action func

* test: add assert check for really deleted rows

* fix: debug error problem in renamed enum class

* fix: apply black formatted codes

* docs: update the document for referential actions

* docs: added note for server default argument

Co-authored-by: collerek <collerek@gmail.com>
2022-07-22 15:05:37 +02:00
8a39ab07d9 Fixed typo in joins and subqueries (#737) 2022-07-09 09:28:42 +02:00
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
3917cce642 fix: typo QueySet -> QuerySet (#656)
Co-authored-by: Benjamin Mollier <benjamin.mollier@meetap.de>
2022-05-07 13:15:26 +02:00
1a99a65eb4 Change docs provider (#652)
* switch to mkdocstrings

* update lock
2022-05-06 12:50:26 +02:00
8376b6635e Merge pull request #557 from MojixCoder/master
Update get_or_create method
2022-03-28 13:04:55 +02:00
1b4daa2c01 add _default clarification in docs 2022-03-28 12:57:48 +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
a6c9281b6a Add tip about using values() to exclude required fields 2021-10-06 13:44:12 -04:00
31e4e6fb8a Fix plural Models 2021-10-05 12:48:29 -04:00
3b3bd23094 Fix grammar in queries docs 2021-10-05 12:47:35 -04:00
fd0d59fca5 Fix typo in select columns docs 2021-10-05 09:38:32 -04:00
f4b2116cb9 fix typos in Python-style filters documentation 2021-07-27 13:49:31 +02:00
107404c3e8 fix inherited pk and add field accessor access to relations 2021-06-25 13:32:31 +02:00
96c9615229 add docs 2021-06-08 14:34:02 +02:00
2088cb16b5 fix isnull typo and formatting 2021-04-22 18:55:45 +02:00
c11e1a870f update docs and readme 2021-04-21 11:28:49 +02:00
4ad843a6a5 fix quoting in order_by, add get_or_none 2021-03-23 17:36:20 +01:00
617ce75042 finish docs 2021-03-23 09:15:13 +01:00
e07c2f296b add docs for select_all 2021-03-22 17:20:16 +01:00
67904980ce add docs 2021-03-15 18:45:46 +01:00
0ea9b0952c add default exceptions to relations, test one argument, test querysetproxy, test deeply nested 2021-03-09 10:13:51 +01:00
472c8368e4 add docs, release docs 2021-03-07 18:50:35 +01:00
eeabb60200 add is null filter, add complex fiters (and_ & or_) and basic tests for them 2021-03-06 13:07:22 +01:00
85a191bb6d update badges, docs, quick start 2021-02-06 13:46:12 +01:00
95385425fe update the dosc with split of queries, fix tests 2021-01-29 11:17:43 +01:00
2f8645b1a2 work on docs in queries 2021-01-28 17:48:32 +01:00
b710ed9780 add tests for cross model forward references, add docs for processing forwardrefs, wip on refactoring queries into separate pages based on functionality 2021-01-26 17:29:40 +01:00