Re: [sqlalchemy] Mapper table properties

2010-04-25 Thread Michael Bayer
On Apr 23, 2010, at 11:29 AM, Jason Baker wrote: Given an entity class (or entity instance), I'd like to get the table that is mapped to it. If I get the mapper using object_mapper/ class_mapper, then I get a mapper with the following properties defined (among others): local_table, ma

[sqlalchemy] Mapper table properties

2010-04-23 Thread Jason Baker
Given an entity class (or entity instance), I'd like to get the table that is mapped to it. If I get the mapper using object_mapper/class_mapper, then I get a mapper with the following properties defined (among others): local_table, mapped_table, and tables. Can someone help me understand what th