MCPcopy
hub / github.com/psycopg/psycopg / __exit__

Method __exit__

psycopg_pool/psycopg_pool/pool.py:488–494  ·  view source on GitHub ↗
(
        self,
        exc_type: type[BaseException] | None,
        exc_val: BaseException | None,
        exc_tb: TracebackType | None,
    )

Source from the content-addressed store, hash-verified

486 return self
487
488 def __exit__(
489 self,
490 exc_type: type[BaseException] | None,
491 exc_val: BaseException | None,
492 exc_tb: TracebackType | None,
493 ) -> None:
494 self.close()
495
496 def resize(self, min_size: int, max_size: int | None = None) -> None:
497 """Change the size of the pool during runtime."""

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected