Hello all,

Can I get the parent table from an inherited table?

something like:

table_a = Table()
table_b = Table()

mapper(TableA, table_a)

mapper(TableB, table_b, inherits=TableA)


table_b.get_parent()


the reason I need it, is that I need to get information about the master
table, because when I get the table from an fk, the table.c atribute get
just columns from that table, and not all columns including the master
tables, in other words, getting table by this way

fk_table = column.foreign_keys[0].column.table

I get a shema.Table object and not the join object that represents the
entire fk table.

any suggestion?

Att
-- 
Alexandre da Silva
Analista de Sistemas - Bacharel em Sistemas de Informação (2003-2007)


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to