> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Christian Démolis > Sent: 01 October 2009 10:40 > To: [email protected] > Subject: [sqlalchemy] Bypass checking to database structure > (metadata.create_all) > > Hi again, > > Is there any way to avoid checking database structure during > the metadata.create_all declaration's phase? > It can be good to check when we are in test phase but when we > are in production and we are sure of our model, it can be > good to bypass create_all checking to database. >
create_all (and drop_all) have a 'checkfirst' parameter that defaults to True. If you set it to False, SA won't check to see if your tables already exist before issuing the CREATE statements: <http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/schema.html#sqlalchemy.schema.MetaData.create_all> Hope that helps, Simon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
