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
orfloat
- ๐
@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 allPrimaryKey
types, not onlyint
- #369: Make
QueryResult
looks like alist
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
- ๐ f-strings support in queries: