Check the docs, create_all has an optional tables= parameter. On Oct 27, 2010 8:18 AM, "Martijn Moeling" <mart...@xs4us.nu> wrote:
Hi, I have a huge definition module where I create Python objects and use declarative. Since not all databases (Multiple for different customers) need all tables I do not like to use create_all.... is there any way to create just the tables I really need (according to some config list or so) say: class C1(Base): __tablename__ = "C1" ...... class C2(Base): __tablename__ = "C2" ...... class C3(Base): __tablename__ = "C3" ...... create_JustThese(engine, [C1,C3]) -> table C2 is NOT created Please do not reply with why I would want this, I just want to know if it is possible and it would help me out big time if it is!!!! Martijn -- 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<sqlalchemy%2bunsubscr...@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.