Thank you, good sir. I was not using metadata.reflect()... but because I had defined/imported a class manually, that table and related tables were populated in metadata.tables().
.reflect() gets everything I would expect. Of course, I have already "wasted" 20 minutes entering the 7 tables by now!!! Ben On Jun 7, 2012, at 7:52 PM, Danosaure wrote: > f I understand your need, you are starting with: > > Base = declarative.declarative_base() > Base.metadata.reflect(engine) > > and then you would like to be able to generate a basic models.py file using > the information in > > Base.metadata.tables > > But from your first post, some tables are not present in that dict? > -- Ben Hitz Senior Scientific Programmer ** Saccharomyces Genome Database ** GO Consortium Stanford University ** h...@stanford.edu -- 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 sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.