MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / after_flush_postexec

Method after_flush_postexec

lib/sqlalchemy/orm/events.py:1997–2021  ·  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

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

Callers 1

_flushMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected