MCPcopy
hub / github.com/psycopg/psycopg / AddConnection

Class AddConnection

psycopg_pool/psycopg_pool/pool.py:973–986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

971
972
973class AddConnection(MaintenanceTask):
974
975 def __init__(
976 self,
977 pool: ConnectionPool[Any],
978 attempt: AttemptWithBackoff | None = None,
979 growing: bool = False,
980 ):
981 super().__init__(pool)
982 self.attempt = attempt
983 self.growing = growing
984
985 def _run(self, pool: ConnectionPool[Any]) -> None:
986 pool._add_connection(self.attempt, growing=self.growing)
987
988
989class ReturnConnection(MaintenanceTask):

Callers 9

waitMethod · 0.70
waitMethod · 0.70
_maybe_grow_poolMethod · 0.70
drainMethod · 0.70
_start_initial_tasksMethod · 0.70
resizeMethod · 0.70
checkMethod · 0.70
_add_connectionMethod · 0.70
_return_connectionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected