Tags: lawsong/pony
Tags
Pony ORM Release 0.7 (2016-10-11) Starting with this release Pony ORM is release under the Apache License, Version 2.0. # New features * Added getattr() support in queries: https://docs.ponyorm.com/api_reference.html#getattr # Backward incompatible changes * ponyorm#159: exceptions happened during flush() should not be wrapped with CommitException Before this release an exception that happened in a hook(https://docs.ponyorm.com/api_reference.html#entity-hooks), could be raised in two ways - either wrapped into the CommitException or without wrapping. It depended if the exception happened during the execution of flush() or commit() function on the db_session exit. Now the exception happened inside the hook never will be wrapped into the CommitException. # Bugfixes * ponyorm#190: Timedelta is not supported when using pymysql
PonyORM Release 0.6.6 (2016-08-22) # New features * Added native JSON data type support in all supported databases: https://docs.ponyorm.com/json.html # Backward incompatible changes * Dropped Python 2.6 support # Improvements * ponyorm#179 Added the compatibility with PYPY using psycopg2cffi * Added an experimental @db_session `strict` parameter: https://docs.ponyorm.com/transactions.html#strict # Bugfixes * ponyorm#182 - LEFT JOIN doesn't work as expected for inherited entities when foreign key is None * Some small bugs were fixed
Pony ORM Release 0.6.5 (2016-04-04) # Improvements * Fixes ponyorm#172: Query prefetch() method should load specified lazy attributes right in the main query if possible # Bugfixes * Fixes ponyorm#168: Incorrect caching when slicing the same query multiple times * Fixes ponyorm#169: When py_check() returns False, Pony should truncate too large values in resulting ValueError message * Fixes ponyorm#171: AssertionError when saving changes of multiple objects * Fixes ponyorm#176: Autostripped strings are not validated correctly for Required attributes See blog post for more detailed information: https://blog.ponyorm.com/2016/04/04/pony-orm-release-0-6-5/
Pony ORM Release 0.6.3 (2016-02-05) This release brings no new features, has no backward incompatible changes, only bug fixes. If you are using obj.flush() method in your code we recommend you to upgrade to 0.6.3 release. Blog post: https://blog.ponyorm.com/2016/02/05/pony-orm-release-0-6-3/
Pony ORM Release 0.6.1 * Closed ponyorm#65: Now the select(), filter(), order_by(), page(), limit(), random() methods can be applied to collection attributes * Closed ponyorm#105: Now you can pass globals and locals to the select() function * Improved inheritance support in queries: select(x for x in BaseClass if x.subclass_attr == y) * Now it is possible to do db.insert(SomeEntity, column1=x, column2=y) instead of db.insert(SomeEntity._table_, column1=x, column2=y) * Discriminator attribute can be part of the composite index * Now it is possible to specify the attribute name instead of the attribute itself in composite index * Query statistics: global_stats_lock is deprecated, just use global_stats property without any locking * New load() method for entity instances which retrieves all unloaded attributes except collections * New load() method for collections, e.g. customer.orders.load() * Enhanced error message when descendant classes declare attributes with the same name * Fixed ponyorm#98: Composite index can include attributes of base entity * Fixed ponyorm#106: incorrect loading of object which consists of primary key only * Fixed pony.converting.check_email() * Prefetching bug fixed: if collection is already fully loaded it shouldn't be loaded again * Deprecated Entity.order_by(..) method was removed. Use Entity.select().order_by(...) instead * Various performance enhancements * Multiple bugs were fixed
PreviousNext