If I understand this, you want to construct a query that returns the primary keys in an arbitrary table?
Try this: key_cols = [c for c in table.primary_key.columns] session.query(*key_cols).all() --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
