there's no API for that and you'd have to keep track of that yourself using a decorator around mapper(). or hunt through all the registered mappers which isn't quite public API.
On Jul 13, 2010, at 3:56 PM, Kent wrote: > I know how to get the mapper given a class or object. > > How do I find the mapper or class given the table? > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to sqlalch...@googlegroups.com. > To unsubscribe from this group, send email to > sqlalchemy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.