you'd see if it's in the ForeignKeyContraint's elements() set. bool(column.foreign_keys.intersection(some_constraint.elements))
On Jul 17, 2009, at 9:44 AM, sandro dentella wrote: > > Hi, > > which is the correct way to see if a ForeignKey in the set > column.foreign_key is part of a compound ForeignKeyConstraint? > > thanks in advance > sandro > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---