Re: [sqlalchemy] Introspection: finding out more about relationships

2013-10-11 Thread Michael Bayer
take a look at local_columns, remote_side, local_remote_pairs (all views of the same thing): MyClass.attribute.property.local_remote_pairs that gives you Column objects. If your mappings have attributes without the same names, you can relate them together mapper.get_property_by_column() where

[sqlalchemy] Introspection: finding out more about relationships

2013-10-11 Thread Alexey Vihorev
Hi! I'm trying to do some introspection on a class's one-to-many relationships. I'm trying to find out which attribute in "many" table points to the "one" table. Is that possible? Thanks! -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubsc