MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / connect_primary

Method connect_primary

asyncpg/_testbase/__init__.py:542–544  ·  view source on GitHub ↗
(cls, **kwargs)

Source from the content-addressed store, hash-verified

540
541 @classmethod
542 def connect_primary(cls, **kwargs):
543 conn_spec = cls.get_cluster_connection_spec(cls.master_cluster, kwargs)
544 return pg_connection.connect(**conn_spec, loop=cls.loop)
545
546 @classmethod
547 def connect_standby(cls, **kwargs):

Callers

nothing calls this directly

Calls 2

connectMethod · 0.45

Tested by

no test coverage detected