]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Query.UpdateDeleteTest.test_delete_fallback fails on mysql due to subquery in DELET...
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 9 Jun 2008 01:24:08 +0000 (01:24 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 9 Jun 2008 01:24:08 +0000 (01:24 +0000)
commit3cd10102e44db28d5fb787c7492e2ac2f7a4e4f9
tree5a9c9893bc9b13f07a97dd18de7287854de07fc5
parentcde133c45d01848cd5696113fe94f269b7fe8d9c
- Query.UpdateDeleteTest.test_delete_fallback fails on mysql due to subquery in DELETE; not sure how to do this exact operation in MySQL
- added query_cls keyword argument to sessionmaker(); allows user-defined Query subclasses to be generated by query().
- added @attributes.on_reconstitute decorator, MapperExtension.on_reconstitute, both receieve 'on_load' attribute event allowing
non-__init__ dependent instance initialization routines.
- push memusage to the top to avoid pointless heisenbugs
- renamed '_foostate'/'_fooclass_manager' to '_sa_instance_state'/'_sa_class_manager'
- removed legacy instance ORM state accessors
- query._get() will use _remove_newly_deleted instead of expunge() on ObjectDeleted, so that transaction rollback
restores the previous state
- removed MapperExtension.get(); replaced by a user-defined Query subclass
- removed needless **kwargs from query.get()
- removed Session.get(cls, id); this is redundant against Session.query(cls).get(id)
- removed Query.load() and Session.load(); the use case for this method has never been clear, and the same functionality is available in more explicit ways
18 files changed:
examples/query_caching/query_caching.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/session.py
test/orm/alltests.py
test/orm/attributes.py
test/orm/bind.py
test/orm/deprecations.py
test/orm/expire.py
test/orm/extendedattr.py
test/orm/mapper.py
test/orm/naturalpks.py
test/orm/query.py
test/orm/session.py
test/orm/transaction.py
test/orm/unitofwork.py