SessionExtension has an after_commit() hook for this purpose.
On Feb 3, 2011, at 9:39 PM, Ryan wrote: > I'm using MapperExtension#after_insert and realizing that this callback fires > when a record has been inserted into a transaction, but before the session is > actually committed. > > I'd like an after_insert callback that fires after commit/once the record > physically resides in the database. Any insight into the code to get this > behavior? > > -- > 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. -- 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.
