short-circuiting a flush() could possibly be done by monkeypatching do_execute() and do_executemany() on engine.dialect...but the flush may well not get very far since it often needs to select things from the database, and also checks the returned rowcount after each INSERT/UPDATE/DELETE statement. youd have to at least allow SELECTs to go through and also somehow return the correct data when things are saved...which could be quite tricky.
if you need to test, why not create a test database ? otherwise youd need to create your own set of CRUD tools for your objects...flush() is a little more involved than that. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
