Michael Hipp wrote:
SQLAlchemy seems pretty smart about updating only the changed columns in an orm object...

If I have an orm object. Something changes one of the columns. Just before I commit() the session, is there a way to tell which columns will be updated vs those that are unchanged?

Any way to ascertain the before/after values on those changed columns?

Here's the basics:

http://www.sqlalchemy.org/docs/session.html#session-attributes

These examples should fill in the rest:

http://www.sqlalchemy.org/trac/wiki/UsageRecipes/VersionedMap
http://www.sqlalchemy.org/trac/wiki/UsageRecipes/VersionedRows
http://www.sqlalchemy.org/docs/examples.html?#module-versioning

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@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