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 happen at commit.
> My intention is to derive from that, a corresponding change to another
> table, for the purpose of audit trail.

audit trails are most easily accomplished using a MapperExtension,  
which will give you hooks to execute additional SQL before or after  
each instance is inserted, updated, or deleted.   
http://www.sqlalchemy.org/docs/04/mappers.html#advdatamapping_mapper_extending



--~--~---------~--~----~------------~-------~--~----~
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