Commit Graph
100 Commits
Author SHA1 Message Date
collerek 81f6af2cc5 Merge pull request #9 from collerek/add_choices
Add choices
2020-09-23 15:27:36 +07:00
collerek 9ce50280ae bump version 2020-09-23 10:11:42 +02:00
collerek 798475ae5f refactor and move tests 2020-09-23 10:09:15 +02:00
collerek ebd812bf00 fix for minimu and maximum in validators, added validator for choices and choices param for BaseField, include tests 2020-09-22 20:50:24 +02:00
collerek 9620452b44 fix overwritten pk for non id pks 2020-09-17 19:11:21 +02:00
collerek f3e227748f fix overwritten pk for non id pks 2020-09-17 19:05:46 +02:00
collerek 58f8ed8fa9 Merge pull request #8 from collerek/add_exclude
Add exclude
2020-09-17 23:16:59 +07:00
collerek d0161a81af add callable excecution and test for default value, update readme with exclude, bump version 2020-09-17 18:10:10 +02:00
collerek 1a4be03131 add exclude method on QuerySet and fix missing default values on creation 2020-09-17 18:03:29 +02:00
collerek 48819f1023 Merge pull request #7 from collerek/extract_joins
Extract joins
2020-09-17 21:25:11 +07:00
collerek 0c4f6a0745 some refactors 2020-09-17 16:18:33 +02:00
collerek a7d1b65712 extracted join 2020-09-17 15:49:39 +02:00
collerek 12487e1089 some refactors 2020-09-17 15:21:11 +02:00
collerek 1cfd061e17 Merge pull request #6 from collerek/test_also_mysql_and_postgress
Test also mysql and postgress
2020-09-17 18:19:26 +07:00
collerek 63a9aa1d5d linting etc. 2020-09-17 13:14:36 +02:00
collerek 1451ec8671 add tests for mysql and postgress, some fixes for those backends 2020-09-17 13:02:34 +02:00
collerek 31096d3f93 initial config for multi db tests 2020-09-16 12:33:12 +02:00
collerek a5d9916575 refactor queries into separate files 2020-09-16 11:51:44 +02:00
collerek 54aaa97de2 more refactors in relations' 2020-09-15 14:01:36 +02:00
collerek b47d5209eb some refactors in relations module 2020-09-15 13:53:54 +02:00
collerek df9b5d27da some refactors and cleanup 2020-09-15 13:33:14 +02:00
collerek 6124830642 fix imports and styles after refactor 2020-09-15 12:53:14 +02:00
collerek ca21e5dde5 further split of relations classes 2020-09-15 12:49:07 +02:00
collerek 12ec8492ef refacotr queryset proxy into separate file 2020-09-15 12:42:58 +02:00
collerek 1075e841cb Merge pull request #4 from collerek/many_to_many
Many to many
2020-09-14 22:37:22 +07:00
collerek 5a8fd74fac fix some smells 2020-09-14 17:33:12 +02:00
collerek ccca6ec0ff update readme 2020-09-14 17:29:25 +02:00
collerek c2e4acc277 bump version 2020-09-14 17:15:17 +02:00
collerek 4674f625df working basic many to many relationships 2020-09-14 17:13:27 +02:00
collerek 58c3627be7 bump version 2020-08-31 11:18:50 +02:00
collerek ff2e5f09bb Merge pull request #3 from collerek/relations
Relations
2020-08-28 21:24:06 +07:00
collerek dd4fc2c8ec ignore no of arguments warning in model_fields flake qa 2020-08-28 16:12:17 +02:00
collerek bd1d47a923 refactor metaclass into functions 2020-08-28 16:05:54 +02:00
collerek 8da4c192f3 finish of refactor 2020-08-27 19:00:06 +02:00
collerek 22b42ff6fc some refactors to reduce complexity 2020-08-27 18:56:21 +02:00
collerek 279d3966b1 liniting and missin type annots 2020-08-27 11:04:49 +02:00
collerek c5389023b8 add fixes for fastapi model clones, add functionality to add and remove models to relation, add relation proxy, fix all tests, adding values also to pydantic model __dict__some refactors 2020-08-26 22:24:25 +02:00
collerek a9f88e8f8f rename alias manager 2020-08-26 14:33:46 +02:00
collerek 63a24e7d36 remove auto related parsing, switch to relations on instance instead of relationship manager 2020-08-24 11:18:41 +02:00
collerek 9bbf6f93ed rename relationshipmanager 2020-08-23 18:32:21 +02:00
collerek fd688d23bd change order of imports 2020-08-23 18:18:38 +02:00
collerek f2ff436fe8 rename newbasemodel 2020-08-23 18:04:33 +02:00
collerek 081337fe72 bump version 2020-08-23 17:58:59 +02:00
collerek 0f72bf36eb refactor and cleanup 2020-08-23 17:50:40 +02:00
collerek f73a97e560 Merge pull request #2 from collerek/pydantic_basemodel
Pydantic basemodel
2020-08-23 21:20:22 +07:00
collerek 348a3d90dc refactor fields into classes 2020-08-23 16:14:04 +02:00
collerek 806fe9b63e fix setting new related model just from dict with pkname 2020-08-23 13:15:04 +02:00
collerek 53384879a9 some cleanup and tests 2020-08-23 12:54:58 +02:00
collerek 08e251efdb clean conflicts and some cleaning 2020-08-19 19:23:04 +07:00
collerek 0b156caf0a version with pydantic inheritance passing all the tests 2020-08-19 18:40:57 +07:00
collerek a39179bc64 mostly working 2020-08-16 22:27:39 +02:00
collerek b69ad226e6 update config 2020-08-15 12:51:01 +02:00
collerek a0ad85811b fix nested dicts, add more real life fastapi tests 2020-08-15 12:37:48 +02:00
collerek 3232c99fca bump version 2020-08-14 19:40:09 +02:00
collerek b3cc2ba86b renames in readme 2020-08-14 19:39:47 +02:00
collerek 062d35168f renames etc. 2020-08-14 19:36:50 +02:00
collerek 0ebecc8610 finish initial queries docs 2020-08-14 15:24:44 +02:00
collerek c6b4f69c4d fix bug with infinite relation auto extraction, finish initial relations docs 2020-08-14 14:35:57 +02:00
collerek 002f27f21e fix bug with infinite relation auto extraction, finish initial relations docs 2020-08-14 14:35:42 +02:00
collerek 6b0cfdbfd3 work on relations docs 2020-08-13 17:10:13 +02:00
collerek 8c7051b07e finish fields docs intial ver,add test for related name, fix child_name(s) in reverse relations 2020-08-13 12:54:42 +02:00
collerek 24eb0b30e7 introduce docs -> models section mostly finished 2020-08-12 16:24:45 +02:00
collerek dd20fd9f01 refactors in metaclass 2020-08-12 10:33:37 +02:00
collerek 4aadc9fac6 clean code 2020-08-11 19:54:54 +02:00
collerek 45653d36c7 refactori into packages 2020-08-11 19:43:42 +02:00
collerek 146dbea015 refactor decorator to separate file 2020-08-11 19:03:02 +02:00
collerek 24b5649c56 refactor expanding of relationship into constructors 2020-08-11 18:56:40 +02:00
collerek 3e04646fd4 refactors in fk 2020-08-11 18:32:48 +02:00
collerek d82340bcb1 refactors in foreign key 2020-08-11 18:11:34 +02:00
collerek 4e91b3837b some cleanup 2020-08-11 17:58:34 +02:00
collerek 7083b50712 simplify adding relations 2020-08-11 17:47:06 +02:00
collerek 867fc691f7 refactor fields into a package 2020-08-11 17:34:19 +02:00
collerek 704e83fed0 refactor required field in model fields into decorator 2020-08-11 17:18:05 +02:00
collerek 8e19a5b127 add clean script 2020-08-11 15:44:05 +02:00
collerek ace348e172 refactored reverse relation registration into the metaclass 2020-08-11 15:27:10 +02:00
collerek becb914e55 refactor query and queryclause into separate classes 2020-08-09 13:27:53 +02:00
collerek 836836c136 refactor merging of instances from queryset to fakepydantic 2020-08-09 12:53:28 +02:00
collerek 3f2568b27e refactors in fields 2020-08-09 12:04:44 +02:00
collerek d9755234c1 readme formatting 2020-08-09 11:08:28 +02:00
collerek fb5d03d64c fix some complexity issues 2020-08-09 10:58:36 +02:00
collerek 22c4a0619c fix some code smells 2020-08-09 08:59:36 +02:00
collerek fa00f7b011 fix coverage 2020-08-09 07:53:06 +02:00
collerek 241628b1d9 liniting and applying black 2020-08-09 07:51:06 +02:00
collerek 9d9346fb13 some style corrections 2020-08-09 06:51:12 +02:00
collerek 39e44b1985 add dialect to compilation of sqlalchemy clauses 2020-08-09 06:24:22 +02:00
collerek 8f179f763f add preloading of not nullable relations (and all chain inbetween) 2020-08-07 19:34:17 +02:00
collerek 3929dd6d73 all tests passes - creating dummy models if fk not nullable 2020-08-07 15:21:37 +02:00
collerek 62475a1949 change queryset to work with column and table aliases 2020-08-07 13:20:16 +02:00
collerek 6efb56a2a0 changed relationshipt to wekrefs 2020-08-07 05:37:10 +02:00
collerek 475dafb6c9 rebuild the registry of relationships 2020-08-05 18:32:13 +02:00
collerek a371c48959 switch hack to list instead of tuple 2020-08-04 21:48:37 +02:00
collerek 6fa7c65b8d fix parsing related models from dictionaries 2020-08-04 21:46:13 +02:00
collerek eb99f28431 added hack to pass as pydantic model in fastapi, tests for fastapi 2020-08-04 21:37:25 +02:00
collerek 345fd227d1 sloppy work on passing all of the test and reimplementing most of the features from encode 2020-08-04 18:44:17 +02:00
collerek a6f8fc6d7e remove unneeded future import 2020-08-03 20:05:57 +02:00
collerek e0bb7e2cda added basic save, update, load and delate methods 2020-08-03 19:59:04 +02:00
collerek d7355b8c9b more checks for table and pydantic model creation 2020-08-03 17:49:01 +02:00
collerek 876f225d0b change badges linkt to proper repo 2020-08-03 13:25:40 +02:00
collerek 8f8e5db2f8 update column types in readme 2020-08-03 13:23:47 +02:00
collerek 0e5d73e7dc changed package name in test to cover orm catalog 2020-08-03 13:16:50 +02:00