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 corresponding change to another
table, for the purpose of audit trail.


On Apr 6, 7:40 pm, Michael Bayer <[EMAIL PROTECTED]> wrote:
> On Apr 6, 2008, at 11:44 AM,MosheC. 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 additional timestamp
> > in the history table.
>
> > I want to do this in one place and wrapping the commit() function
> > seems appropriate.
>
> take a look at SessionExtension:  
> http://www.sqlalchemy.org/docs/04/sqlalchemy_orm_session.html#docstri...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to