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

Function _init_cluster

asyncpg/_testbase/__init__.py:221–226  ·  view source on GitHub ↗
(ClusterCls, cluster_kwargs, initdb_options=None)

Source from the content-addressed store, hash-verified

219
220
221def _init_cluster(ClusterCls, cluster_kwargs, initdb_options=None):
222 cluster = ClusterCls(**cluster_kwargs)
223 cluster.init(**(initdb_options or {}))
224 cluster.trust_local_connections()
225 atexit.register(_shutdown_cluster, cluster)
226 return cluster
227
228
229def _get_initdb_options(initdb_options=None):

Callers 2

_init_default_clusterFunction · 0.85
new_clusterMethod · 0.85

Calls 2

initMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…