Hi all, I looking for a way to delete/empty a sqlite database completely (can be in memory or file). I have tried:
- metadata.drop_all(engine); which does not work with cyclic references - solution from http://www.sqlalchemy.org/trac/wiki/UsageRecipes/DropEverything; it requires names of foreign key columns to be returned by the inspector class, however these names are empty - some other ways. I am unittesting dynamic generation of tables/classes dynamically from definitions in another database. To be able to run multiple tests in one run, my tearDown method must delete/empty the database. Any tips or solutions? Have I overlooked something obvious? It seems that it should not be that complicated. Cheers, Lars -- 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.