Execute after flush has completed, and after the post-exec state occurs. This will be when the 'new', 'dirty', and 'deleted' lists are in their final state. An actual commit() may or may not have occurred, depending on whether or not the flush started its own
(
self, session: Session, flush_context: UOWTransaction
)
| 1984 | """ |
| 1985 | |
| 1986 | def after_flush_postexec( |
| 1987 | self, session: Session, flush_context: UOWTransaction |
| 1988 | ) -> None: |
| 1989 | """Execute after flush has completed, and after the post-exec |
| 1990 | state occurs. |
| 1991 | |
| 1992 | This will be when the 'new', 'dirty', and 'deleted' lists are in |
| 1993 | their final state. An actual commit() may or may not have |
| 1994 | occurred, depending on whether or not the flush started its own |
| 1995 | transaction or participated in a larger transaction. |
| 1996 | |
| 1997 | :param session: The target :class:`.Session`. |
| 1998 | :param flush_context: Internal :class:`.UOWTransaction` object |
| 1999 | which handles the details of the flush. |
| 2000 | |
| 2001 | |
| 2002 | .. seealso:: |
| 2003 | |
| 2004 | :meth:`~.SessionEvents.before_flush` |
| 2005 | |
| 2006 | :meth:`~.SessionEvents.after_flush` |
| 2007 | |
| 2008 | :ref:`session_persistence_events` |
| 2009 | |
| 2010 | """ |
| 2011 | |
| 2012 | def after_begin( |
| 2013 | self, |