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 out what table name foo came from.
>
> You'd want
>
>     sqlalchemy.orm.object_mapper(foo).local_table.name
>
> --
> david bonner
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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