[sqlalchemy] finding mapper from table

2010-07-13 Thread Kent
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

Re: [sqlalchemy] finding mapper from table

2010-07-13 Thread Michael Bayer
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