Skip to content

Releases: tortoise/tortoise-orm

v0.11.10

02 May 21:35
Compare
Choose a tag to compare
  • Fixed SQLite handling of DatetimeField (#130)

v0.11.9

18 Apr 10:43
Compare
Choose a tag to compare
  • Code has been reformatted using black, and minor code cleanups (#120 #123)
  • Sample Quart integration (#121)
  • Better isolation of connection handling — Allows more dynamic connections so we can do pooling & reconnections.
  • Added automatic MySQL connection retry

v0.11.8

01 Apr 15:31
9661ae3
Compare
Choose a tag to compare
  • Fixed .count() when a join happens (#109) (#118)

v0.11.7

23 Mar 07:09
Compare
Choose a tag to compare
  • Fixed 'unique_together' for foreign keys (#114)
  • Fixed Field.to_db_value method to handle Enum (#113) (#115) (#116)

v0.11.6

20 Mar 12:13
Compare
Choose a tag to compare

Added ability to create tables with "unique_together" meta options (#112)

v0.11.5

20 Mar 12:09
2843cb7
Compare
Choose a tag to compare

Fixed concurrency isolation when attempting to do multiple concurrent operations on a single connection.

v0.11.4

20 Feb 09:14
Compare
Choose a tag to compare
  • 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.
  • 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

06 Feb 05:46
Compare
Choose a tag to compare
  • 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 on QuerySet.
  • Add required read-only property to fields

v0.11.2

06 Jan 13:13
Compare
Choose a tag to compare
  • Added "safe" schema generation
  • Correctly convert values to their db representation when using the "in" filter
  • Added some common missing field types:
    • BigIntField → can also be used as a primary key field.
    • TimeDeltaField

0.11.0

24 Dec 10:24
Compare
Choose a tag to compare
  • Added .exclude() method for QuerySet
  • Q objects can now be negated for NOT query (~Q(...))
  • Support subclassing on existing fields
  • Numerous bug fixes
  • Removed known broken connection pooling