> try calling `session.flush()` > > that will "emit sql" and pull insert ids; syncing the SqlAlchemy Session > to the database. >
In my case, I'm trying to create event handlers that work with existing sqlalchemy code, so modifying all existing code to add flush() statements at strategic points is not an option. also, calling flush() from inside an event handler seems like a bad idea. chad. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
