Re: [sqlalchemy] best-practices question

2010-03-30 Thread Taavi Burns
Jon Nelson wrote: > Let's say I have a database with hundreds or even thousands of tables. Sure you didn't mean "hundreds OF thousands"? :) On Tue, Mar 30, 2010 at 2:09 PM, Michael Bayer wrote: > def map_a_table(tablename): >    table = Table(tablename, metadata, >         ...put the standard s

Re: [sqlalchemy] best-practices question

2010-03-30 Thread Michael Bayer
Jon Nelson wrote: > Let's say I have a database with hundreds or even thousands of tables. > The table structure for this set of tables is *exactly* the same. > Furthermore, let's say the name of each table is predictable. > For example, something like: > > tablename_2010_03_05 > > What I'd like to

[sqlalchemy] best-practices question

2010-03-30 Thread Jon Nelson
Let's say I have a database with hundreds or even thousands of tables. The table structure for this set of tables is *exactly* the same. Furthermore, let's say the name of each table is predictable. For example, something like: tablename_2010_03_05 What I'd like to know is how to best manage maki