summaryrefslogtreecommitdiff
path: root/databases/py-tortoise-orm
AgeCommit message (Collapse)AuthorFilesLines
2022-01-04*: bump PKGREVISION for egg.mk userswiz1-1/+2
They now have a tool dependency on py-setuptools instead of a DEPENDS
2021-12-30Forget about Python 3.6adam1-2/+2
2021-10-26databases: Replace RMD160 checksums with BLAKE2s checksumsnia1-2/+2
All checksums have been double-checked against existing RMD160 and SHA512 hashes The following distfiles could not be fetched (some may be only fetched conditionally): ./databases/cstore/distinfo D6.data.ros.gz ./databases/cstore/distinfo cstore0.2.tar.gz ./databases/cstore/distinfo data4.tar.gz
2021-10-07databases: Remove SHA1 distfile hashesnia1-2/+1
2021-02-05py-tortoise-orm: updated to 0.16.21adam2-7/+7
0.16.21 - Fixed validating JSON before decoding. - Add model method `update_or_create`. - Add `batch_size` parameter for `bulk_create` method. - Fix save with F expression and field with source_field.
2021-01-24py-tortoise-orm: updated to 0.16.20adam3-8/+11
0.16.20 - Add model field validators. - Allow function results in group by.
2021-01-03py-tortoise-orm: updated to 0.16.19adam2-8/+8
0.16.19 - Replace set `TZ` environment variable to `TIMEZONE` to avoid affecting global timezone. - Allow passing module objects to `models_paths` param of `Tortoise.init_models()`. - Implement `PydanticMeta.backward_relations`. - Allow overriding `PydanticMeta` in `PydanticModelCreator`. - Fixed make_native typo to make_naive in timezone module
2020-11-17py-tortoise-orm: updated to 0.16.18adam3-13/+15
0.16.18 Support custom function in update. Add Model.refresh_from_db. Add timezone support, be careful to upgrade to this version, see docs for details. Remove aerich in case of cyclic dependency.
2020-10-26py-tortoise-orm: updated to 0.16.17adam2-7/+7
0.16.17 Add on_delete in ManyToManyField. Support F expression in annotate. Fix QuerySet.select_related in case of join same table twice. Integrate Aerich into the install.
2020-09-29py-tortoise-orm: updated to 0.16.16adam2-7/+7
0.16.16 Fixed inconsistency in integrity error exception of FastAPI add OSError to _get_comments except block
2020-09-18py-tortoise-orm: updated to 0.16.15adam3-9/+12
0.16.15 Make DateField accept valid date str. Add QuerySet.select_for_update(). check default for not None on pydantic model creation propagate default to pydantic model Add QuerySet.select_related(). Add custom attribute name for Prefetch instruction. Add db_constraint for RelationalField family.
2020-07-27py-tortoise-orm: updated to 0.16.14adam3-8/+9
0.16.14 Make F expression work with QuerySet.filter(). Include py.typed in source distribution. Added datetime parsing from int for fields.DatetimeField. get_or_create passes the using_db= on if provided. Allow custom loop and connection_class parameters to be passed on to asyncpg.
2020-06-12py-tortoise-orm: fix typosadam1-3/+3
2020-06-11py-tortoise-orm: updated to 0.16.13adam2-8/+12
0.16.13 Default install of tortoise-orm now installs with no C-dependencies, if you want to use the C accelerators, please do a pip install tortoise-orm[accel] instead. Added <instance>.clone() method that will create a cloned instance in memory. To persist it you still need to call .save() .clone() will raise a ParamsError if tortoise can’t generate a primary key. In that case do a .clone(pk=<newval>) If manually setting the primary key value to None and the primary key can be automatically generated, this will create a new record. We however still recommend the .clone() method instead. .save() can be forced to do a create by setting force_create=True .save() can be forced to do an update by setting force_update=True Setting update_fields for a .save() operation will strongly prefer to do an update if possible
2020-05-31py-tortoise-orm: apparently Python 3.6 is not supportedadam1-2/+2
2020-05-23Re-depend on py-pypika as it has been importedadam1-2/+2
2020-05-23py-tortoise-orm: Comment out nonexistent py-pypika.jperkin1-2/+2
2020-05-23py-tortoise-orm: added version 0.16.12adam4-0/+180
Tortoise ORM is an easy-to-use asyncio ORM (Object Relational Mapper) inspired by Django. Tortoise ORM was build with relations in mind and admiration for the excellent and popular Django ORM. It's engraved in it's design that you are working not with just tables, you work with relational data.