Releases: tortoise/tortoise-orm
Releases · tortoise/tortoise-orm
v0.11.10
v0.11.9
v0.11.8
v0.11.7
v0.11.6
v0.11.5
v0.11.4
- Fixed several convenince issues with foreign relations:
- FIXED:
.all()
actually returns the _query property as was documented. - New models with FK don't automatically fail to resolve any data. They can now be evaluated lazily.
- FIXED:
- Some DB's don't support OFFSET without Limit, added caps to signal workaround, which is to automatically add limit of 1000000
- Pylint plugin to know about default
related_name
for ForeignKey fields. - Simplified capabilities to be static, and defined at class level.
v0.11.3
-
Added basic DB driver Capabilities.
Test runner now has the ability to skip tests conditionally, based on the DB driver Capabilities:
@requireCapability(dialect='sqlite') async def test_run_sqlite_only(self): ...
-
Added per-field indexes.
When setting
index=True
on a field, Tortoise will now generate an index for it.NOTE:
Due to MySQL limitation of not supporting conditional index creation, if `safe=True` (the default) is set, it won't create the index and emit a warning about it. We plan to work around this limitation in a future release.
- Performance fix with PyPika for small fetch queries
- Remove parameter hack now that PyPika support Parametrized queries
- Fix typos in JSONField docstring
- Added
.explain()
method onQuerySet
. - Add
required
read-only property to fields