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

Method new_cluster

asyncpg/_testbase/__init__.py:316–320  ·  view source on GitHub ↗
(cls, ClusterCls, *, cluster_kwargs={}, initdb_options={})

Source from the content-addressed store, hash-verified

314
315 @classmethod
316 def new_cluster(cls, ClusterCls, *, cluster_kwargs={}, initdb_options={}):
317 cluster = _init_cluster(ClusterCls, cluster_kwargs,
318 _get_initdb_options(initdb_options))
319 cls._clusters.append(cluster)
320 return cluster
321
322 @classmethod
323 def start_cluster(cls, cluster, *, server_settings={}):

Callers 5

setup_clusterMethod · 0.80
setup_clusterMethod · 0.80
setup_clusterMethod · 0.80
setup_clusterMethod · 0.80
setup_clusterMethod · 0.80

Calls 2

_init_clusterFunction · 0.85
_get_initdb_optionsFunction · 0.85

Tested by 4

setup_clusterMethod · 0.64
setup_clusterMethod · 0.64
setup_clusterMethod · 0.64
setup_clusterMethod · 0.64