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

Function _init_cluster

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

Source from the content-addressed store, hash-verified

220
221
222def _init_cluster(ClusterCls, cluster_kwargs, initdb_options=None):
223 cluster = ClusterCls(**cluster_kwargs)
224 cluster.init(**(initdb_options or {}))
225 cluster.trust_local_connections()
226 atexit.register(_shutdown_cluster, cluster)
227 return cluster
228
229
230def _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