Commit Graph

42 Commits

Author SHA1 Message Date
3661967a27 Bump dependencies (#874)
* fix pytest-asynio bump to 0.19

* bump mypy

* fix coverage of async fixtures
2022-10-11 16:29:41 +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
ebf7c6e06f add enum field (#626)
* add enum field

* add decorator for asyncio

* fix enum typing, additional tests, add docs

* add more tests

Co-authored-by: collerek <collerek@gmail.com>
2022-04-27 12:01:00 +02:00
2517572a14 Reformat project 2022-02-01 10:33:29 +03:30
fc32001fe7 Update get_or_create method 2022-02-01 09:44:07 +03:30
646a901af5 clean unused code 2022-01-06 19:35:13 +01:00
c8586e5b8e rc for skip of literal binds 2022-01-06 18:22:07 +01:00
aab46de800 remove date dumping to isoformat, add pydantic 1.9 support 2022-01-03 18:23:22 +01:00
1b9a59b49d #453 make first and get respect user ordering if set on main model 2021-12-16 17:24:23 +01:00
bc5c6222b1 #485 add possibility to pass comments to sqlalchemy 2021-12-16 16:41:50 +01:00
15be5170f3 fix #409 - nullable large binary fields 2021-12-16 14:44:01 +01:00
4896a3a982 add tests for creation from dictionaries and for m2m relations 2021-10-09 17:19:17 +02:00
6d2712c0f8 resolve merge conflicts 2021-10-09 16:30:35 +02:00
b637fc0774 remove .vscode settings, re-dump orjson choices to fix choices, move mypy config into pyproject.toml 2021-10-08 20:14:03 +02:00
b2541bed1e Added poetry integration.
Description:
* Fixed github actions;
* Removed requirements.txt;
* Fixed CONTRIBUTING.md;
* Fixed black and flake8.

Signed-off-by: Pavel <win10@list.ru>
2021-10-08 16:56:59 +04:00
afa1756b47 very initial verson of construct 2021-10-05 18:50:02 +02:00
1da9111dbd add extra to Model.Meta, update docs and bump version 2021-09-26 14:07:47 +02:00
67487ebf9c fix for #354 - allow None for nullable field with choices 2021-09-26 12:43:09 +02:00
8376fb023a fix for #348 2021-09-26 12:07:08 +02:00
8126e95ec1 change text for string to allow default in mysql 2021-09-08 09:30:49 +02:00
95adc7146a add sql_nullable param 2021-09-08 09:22:29 +02:00
9bb22d2ea4 add overwriting pydantic types #311 2021-08-27 16:02:20 +02:00
521b9e6c12 fix for obsolete pydantic parameters 2021-08-06 16:03:29 +02:00
7baaee63ce add:SmallInteger() 2021-08-06 11:43:51 +08:00
b423c1c56d fixes for #270 and #274 2021-07-21 14:39:23 +02:00
cb4e5ea955 improve date handling 2021-07-06 15:11:26 +02:00
557105a591 fix coverage 2021-06-22 13:09:55 +02:00
172a6a2be6 bug fixes 2021-06-22 12:58:39 +02:00
0527c5fb82 refactor into descriptors, cleanup, docs update 2021-05-17 17:21:10 +02:00
4c79ce5a5e WIP super dirty - change to descriptors and different tries 2021-05-16 20:42:07 +02:00
70ac1e3361 add excludes for pks and through models in dict 2021-05-07 18:38:44 +02:00
734c33920b add support for normal pydantic fields 2021-04-28 19:17:59 +02:00
d2921167bd fix coverage 2021-04-28 17:16:30 +02:00
11ed5fd322 add large binary field, tests and docs 2021-04-28 17:06:15 +02:00
ac426de757 replace double % for some dialects 2021-04-20 12:10:39 +02:00
d5295543d4 replace double % for some dialects 2021-04-20 12:06:50 +02:00
8b951a48be remove emailstr to vavoid additional deps 2021-04-20 11:59:36 +02:00
5e38426694 finish release notes, add more test 2021-04-20 11:52:41 +02:00
7a27778b44 add and/or/not to filtergroups, add left and right shift to operators, add some tests, add *args to other functions that read data and use filter 2021-04-19 19:49:42 +02:00
c49d21f605 wip adding filtering and order by with field chain access instead of strings 2021-04-17 16:24:42 +02:00
6780c9de8a fix private attributes initialization 2021-04-12 10:40:29 +02:00
da05e5ba1d split tests into packages 2021-03-30 12:48:39 +02:00