[sqlalchemy] Re: Getting the table name that a mapped object came from

2008-04-25 Thread David Bonner
On Fri, Apr 25, 2008 at 2:34 PM, TP [EMAIL PROTECTED] wrote: Hi, does anyone know a way to get the underlying table name from the DB for a mapped object? foo = session.Query(Foo).filter_by(a=x) I'd like to now find out what table name foo came from. You'd want

[sqlalchemy] Re: Getting the table name that a mapped object came from

2008-04-25 Thread TP
Thanks! On Apr 25, 2:44 pm, David Bonner [EMAIL PROTECTED] wrote: On Fri, Apr 25, 2008 at 2:34 PM, TP [EMAIL PROTECTED] wrote:  Hi, does anyone know a way to get the underlying table name from the  DB for a mapped object?  foo = session.Query(Foo).filter_by(a=x)  I'd like to now find