Skip to content

Tags: vlfedotov/pony

Tags

0.7.2

Toggle 0.7.2's commit message
Pony ORM Release 0.7.2 (2017-07-17)

# New features

* All arguments of db.bind() can be specified as keyword arguments. Previously Pony required the first positional argument which specified the database provider. Now you can pass all the database parameters using the dict: db.bind(**db_params). See https://docs.ponyorm.com/api_reference.html#Database.bind
* The `optimistic` attribute option is added https://docs.ponyorm.com/api_reference.html#cmdoption-arg-optimistic

# Bugfixes

* Fixes ponyorm#219: when a database driver raises an error, sometimes this error was masked by the 'RollbackException: InterfaceError: connection already closed' exception. This happened because on error, Pony tried to rollback transaction, but the connection to the database was already closed and it masked the initial error. Now Pony displays the original error which helps to understand the cause of the problem.
* Fixes ponyorm#276: Memory leak
* Fixes the __all__ declaration. Previously IDEs, such as PyCharm, could not understand what is going to be imported by 'from pony.orm import *'. Now it works fine.
* Fixes ponyorm#232: negate check for numeric expressions now checks if value is zero or NULL
* Fixes ponyorm#238, fixes ponyorm#133: raise TransactionIntegrityError exception instead of AssertionError if obj.collection.create(**kwargs) creates a duplicate object
* Fixes ponyorm#221: issue with unicode json path keys
* Fixes bug when discriminator column is used as a part of a primary key
* Handle situation when SQLite blob column contains non-binary value

0.7.1

Toggle 0.7.1's commit message
Pony ORM Release 0.7.1 (2017-01-10)

# New features

* New warning DatabaseContainsIncorrectEmptyValue added, it is raised when the required attribute is empty during loading an entity from the database

# Bugfixes

* Fixes ponyorm#216: Added Python 3.6 support
* Fixes ponyorm#203: subtranslator should use argnames from parent translator
* Change a way aliases in SQL query are generated in order to fix a problem when a subquery alias masks a base query alias
* Volatile attribute bug fixed
* Fix creation of self-referenced foreign keys - before this Pony didn't create the foreign key for self-referenced attributes
* Bug fixed: when required attribute is empty the loading from the database shouldn't raise the validation error. Now Pony raises the warning DatabaseContainsIncorrectEmptyValue
* Throw an error with more clear explanation when a list comprehension is used inside a query instead of a generator expression: "Use generator expression (... for ... in ...) instead of list comprehension [... for ... in ...] inside query"

0.7

Toggle 0.7's commit message
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

0.6.6

Toggle 0.6.6's commit message
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

0.6.5

Toggle 0.6.5's commit message
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/

0.6.4

Toggle 0.6.4's commit message
Pony ORM Release 0.6.4 (2016-02-10)

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.4 release.

0.6.3

Toggle 0.6.3's commit message
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/

0.6.2

Toggle 0.6.2's commit message
Merge master to orm: fix 0.6.2 release date: 2015-01-11 -> 2016-01-11

0.6.1

Toggle 0.6.1's commit message
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

0.6

Toggle 0.6's commit message
Pony ORM Release 0.6