(self, invalidate: bool, is_reset: bool = False)
| 2684 | self._close_impl(invalidate=True) |
| 2685 | |
| 2686 | def _close_impl(self, invalidate: bool, is_reset: bool = False) -> None: |
| 2687 | if not is_reset and self._close_state is _SessionCloseState.ACTIVE: |
| 2688 | self._close_state = _SessionCloseState.CLOSED |
| 2689 | self.expunge_all() |
| 2690 | if self._transaction is not None: |
| 2691 | for transaction in self._transaction._iterate_self_and_parents(): |
| 2692 | transaction.close(invalidate) |
| 2693 | |
| 2694 | def expunge_all(self) -> None: |
| 2695 | """Remove all object instances from this ``Session``. |
no test coverage detected