(self, invalidate: bool, is_reset: bool = False)
| 2590 | self._close_impl(invalidate=True) |
| 2591 | |
| 2592 | def _close_impl(self, invalidate: bool, is_reset: bool = False) -> None: |
| 2593 | if not is_reset and self._close_state is _SessionCloseState.ACTIVE: |
| 2594 | self._close_state = _SessionCloseState.CLOSED |
| 2595 | self.expunge_all() |
| 2596 | if self._transaction is not None: |
| 2597 | for transaction in self._transaction._iterate_self_and_parents(): |
| 2598 | transaction.close(invalidate) |
| 2599 | |
| 2600 | def expunge_all(self) -> None: |
| 2601 | """Remove all object instances from this ``Session``. |
no test coverage detected