MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / connect_primary

Method connect_primary

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

Source from the content-addressed store, hash-verified

531
532 @classmethod
533 def connect_primary(cls, **kwargs):
534 conn_spec = cls.get_cluster_connection_spec(cls.master_cluster, kwargs)
535 return pg_connection.connect(**conn_spec, loop=cls.loop)
536
537 @classmethod
538 def connect_standby(cls, **kwargs):

Callers

nothing calls this directly

Calls 2

connectMethod · 0.45

Tested by

no test coverage detected