PonyORM v0.7.6 Release Notes

Release Date: 2018-08-10 // over 5 years ago
  • ๐Ÿ”‹ Features since 0.7.5:

    • ๐Ÿ‘ f-strings support in queries: select(f'{s.name} - {s.age}' for s in Student)
    • #344: It is now possible to specify offset without limit: query.limit(offset=10)
    • ๐Ÿ‘ #371: Support of explicit casting of JSON expressions to str, int or float
    • ๐Ÿ“„ @db.on_connect decorator added

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fix bulk delete bug introduced in 0.7.4
    • #370 Fix memory leak introduced in 0.7.4
    • Now exists() in query does not throw away condition in generator expression:
      exists(s.gpa > 3 for s in Student)
    • โœ… #373: 0.7.4/0.7.5 breaks queries using the in operator to test membership of another query result
    • #374: auto=True can be used with all PrimaryKey types, not only int
    • #369: Make QueryResult looks like a list object again: add concatenation with lists, .shuffle() and .to_list() methods
    • #355: Fix binary primary keys PrimaryKey(buffer) in Python2
    • ๐Ÿ‘ Interactive mode support for PyCharm console
    • ๐Ÿ›  Fix wrong table aliases in complex queries
    • ๐Ÿ›  Fix query optimization code for complex queries
    • ๐Ÿ›  Fix a bug with hybrid properties that use external functions