MCPcopy
hub / github.com/MagicStack/asyncpg / _get_connection_spec

Method _get_connection_spec

asyncpg/cluster.py:309–319  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

307 raise ClusterError('cannot destroy {} cluster'.format(status))
308
309 def _get_connection_spec(self):
310 if self._connection_addr is None:
311 self._connection_addr = self._connection_addr_from_pidfile()
312
313 if self._connection_addr is not None:
314 if self._connection_spec_override:
315 args = self._connection_addr.copy()
316 args.update(self._connection_spec_override)
317 return args
318 else:
319 return self._connection_addr
320
321 def get_connection_spec(self):
322 status = self.get_status()

Callers 2

get_connection_specMethod · 0.95
_test_connectionMethod · 0.95

Calls 1

Tested by

no test coverage detected