Dump sqlalchemy objects/fixtures as insert statements

261 Views Asked by At

I'm programmatically generating test data, both as sqlalchemy ORM objects, and as fixtures. However, other parts of the application need to have the test data pre-loaded in the database, as sql INSERT statements (don't question this - it's a fixed requirement whether or not you or I like it). I'd like to take my generated objects, or fixtures, and dump them as insert statements. Is there a way to do this?

0

There are 0 best solutions below