MCPcopy
hub / github.com/psycopg/psycopg / _check_open_getconn

Method _check_open_getconn

psycopg_pool/psycopg_pool/pool.py:128–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

126 gather(*workers, timeout=5.0, timeout_hint=hint)
127
128 def _check_open_getconn(self) -> None:
129 super()._check_open_getconn()
130
131 if self._open_implicit:
132 self._open_implicit = False
133
134 warnings.warn(
135 f"the default for the {type(self).__name__} 'open' parameter will become 'False' in a future release. Please use open={{True|False}} explicitly, or use the pool as context manager using: `with {type(self).__name__}(...) as pool: ...`",
136 DeprecationWarning,
137 )
138
139 def wait(self, timeout: float = 30.0) -> None:
140 """

Callers 2

waitMethod · 0.95
getconnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected