[sqlalchemy] Re: retrieving mapped objects from within a session

2008-05-18 Thread Moshe C.
Got back to this issue after a while. The SessionExtension objects allows me to hook on to a session and get notified of various events. My question is different: Given a session, before commit, how can I query it to know what is going to happen at commit. My intention is to derive from that, a

[sqlalchemy] Re: retrieving mapped objects from within a session

2008-05-18 Thread Michael Bayer
On May 18, 2008, at 2:09 PM, Moshe C. wrote: Got back to this issue after a while. The SessionExtension objects allows me to hook on to a session and get notified of various events. My question is different: Given a session, before commit, how can I query it to know what is going to

[sqlalchemy] Re: retrieving mapped objects from within a session

2008-04-06 Thread Michael Bayer
On Apr 6, 2008, at 11:44 AM, Moshe C. wrote: Is it possible to retrieve mapped objects from a session. The motivation: I want to maintain history log tables where a row is added per each update or insert on the corresponding main table. The schema of the tables is identical except for an