On Apr 15, 7:03 am, bool <[email protected]> wrote: > Given an Update(or Insert) object how can I find the columns being > updated (or Inserted). > I dont find any function that gives these? > > t = Table("abc", MetaData(conn), Column("x", String), Column("y", > Integer)) > u = t.update().values(x='a') > > # Now I want to get list of columns being updated (i.e., x) given u > (i.e., Update object)
Let's try this again. The compiler has a "params" attribute that will get you close to what you want. See the following doc on insert expressions which demonstrates how this works. http://www.sqlalchemy.org/docs/core/tutorial.html#insert-expressions Michael -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. 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.
