Re: [Sqlalchemy-users] Create table if not exists

2006-06-08 Thread Michael Bayer
right now metadata.create_all() will do it for you. if you want to do just one table at a time, for now you can do: if not engine.has_table(sometable.name): engine.create(sometable) obviously a more convenient interface for table.exists() and table.create(checkexists=True) should be ad

[Sqlalchemy-users] Create table if not exists

2006-06-08 Thread Arnar Birgisson
Hi there, What is the preferred way of creating a table (through Table.create() or alike) if it doesn't exist already, with a no-op if it does? Arnar ___ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.ne