PonyORM v0.7.6.rc1 Release Notes

Release Date: 2018-08-08 // almost 4 years ago
  • ๐Ÿ›  This is mostly bugfix release to fix bugs introduced in 0.7.4

    ๐Ÿ†• New features

    • ๐Ÿ‘ 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
    • #367: @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