its not currently tracking mappers to tables, since you could have any number of mappers for a given table. a class' primary mapper is attainable, and you could also get the foreign key's mapper via the parent mapper ?

Project.mapper.props['employee'].mapper

not sure if that helps.

On Jan 29, 2006, at 4:26 PM, Huy Do wrote:

Hi,

Just wondering if there was something built into sqlalchemy which would
give me the mapper to a foreign key table.

eg.

Project.c.employee_id.foreign_key

I could use a dict to map it myself and return the appropriate mapper
but was hoping for a shortcut.

Thanks

Huy





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel? cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to