PonyORM v0.7.4 Release Notes
Release Date: 2018-07-23 // almost 6 years ago-
Major features
- ๐ Hybrid methods and properties added: https://docs.ponyorm.com/entities.html#hybrid-methods-and-properties
- ๐ Allow to base queries on another queries:
select(x.a for x in prev_query if x.b)
- โ Added support of Python 3.7
- โ Added support of PyPy
group_concat()
aggregate function added- ๐ฆ pony.flask subpackage added for integration with Flask
Other features
distinct
option added to aggregate functions- ๐ Support of explicit casting to
float
andbool
in queries
๐ Improvements
- Apply @cut_traceback decorator only when pony.MODE is 'INTERACTIVE'
๐ Bugfixes
- In SQLite3
LIKE
is case sensitive now - #249: Fix incorrect mixin used for Timedelta
- #251: correct dealing with qualified table names
- #301: Fix aggregation over JSON Column
- ๐ #306: Support of frozenset constants added
- #308: Fixed an error when assigning JSON attribute value to the same attribute:
obj.json_attr = obj.json_attr
- #313: Fix missed retry on exception raised during
db_session. __exit__
- ๐ #314: Fix AttributeError: 'NoneType' object has no attribute 'seeds'
- #315: Fix attribute lifting for JSON attributes
- #321: Fix KeyError on
obj.delete()
- #325: duplicating percentage sign in raw SQL queries without parameters
- #331: Overriding
__len__
in entity fails - #336: entity declaration serialization
- #357: reconnect after PostgreSQL server closed the connection unexpectedly
- ๐ Fix Python implementation of
between()
function and rename arguments:between(a, x, y)
->
between(x, a, b)
- ๐ Fix retry handling: in PostgreSQL and Oracle an error can be raised during commit
- ๐ Fix optimistic update checks for composite foreign keys
- Don't raise
OptimisticCheckError
ifdb_session
is not optimistic - Handling incorrect datetime values in MySQL
- ๐ Improved
ImportError
exception messages when MySQLdb, pymysql, psycopg2 or psycopg2cffi driver was not found - ๐
desc()
function fixed to allow reverse its effect by callingdesc(desc(x))
__contains__
method should check if objects belong to the samedb_session
- ๐ Fix pony.MODE detection; mod_wsgi detection according to official doc
- ๐ A lot of inner fixes