Hi all.
I'm working on converting our system to use SQLAlchemy, and one thing I'm
not sure how to do properly is to track when a particular model object is
last updated. When doing just raw SQL over the DB-API, this basically meant
whenever I did a change to the model, I would issue an UPDATE statement to
update the last update field as well.

When using model objects, I'm not sure how to best do that. Is there a way
to put a hook into the model objects that are called whenever they're saved
to the database, and add a new change as well? Or do I have to make it so
all fields are synonyms() and properties that update this attribute at the
same time as setting the primary one?

Thanks in advance.

--S

--~--~---------~--~----~------------~-------~--~----~
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 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to