]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
mapper's querying facilities migrated to new query.Query() object, which can receive...
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 Apr 2006 21:12:00 +0000 (21:12 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 Apr 2006 21:12:00 +0000 (21:12 +0000)
commit5bda70e770489a09a848d5ac3bfbee0aabd805ab
tree081c39dfb9a8486f78f923de3e3843e5d10eb634
parentc0e5bb085b052e016d75ecf8e0a24584a2de730a
mapper's querying facilities migrated to new query.Query() object, which can receive session-specific context via the mapper.using() statement.  reuslting object instances will be bound to this session, but query execution still handled by the SQLEngines implicit in the mapper's Table objects.
session now propigates to the unitofwork UOWTransaction object, as well as mapper's save_obj/delete_obj via the UOWTransaction it receives. UOWTransaction explicitly calls the Session for the engine corresponding to each Mapper in the flush operation, although the Session does not yet affect the choice of engines used, and mapper save/delete is still using the Table's implicit SQLEngine.
changed internal unitofwork commit() method to be called flush().
removed all references to 'engine' from mapper module, including adding insert/update specific SQLEngine methods such as last_inserted_ids, last_inserted_params, etc. to the returned ResultProxy so that Mapper need not know which SQLEngine was used for the execute.
changes to unit tests, SelectResults to support the new Query object.
doc/build/content/docstrings.myt
lib/sqlalchemy/__init__.py
lib/sqlalchemy/engine.py
lib/sqlalchemy/mapping/mapper.py
lib/sqlalchemy/mapping/objectstore.py
lib/sqlalchemy/mapping/properties.py
lib/sqlalchemy/mapping/query.py [new file with mode: 0644]
lib/sqlalchemy/mapping/unitofwork.py
lib/sqlalchemy/mods/selectresults.py
test/mapper.py
test/objectstore.py