MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / after_flush_postexec

Method after_flush_postexec

lib/sqlalchemy/orm/events.py:1986–2010  ·  view source on GitHub ↗

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
    )

Source from the content-addressed store, hash-verified

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,

Callers 1

_flushMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected