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

Method new_cluster

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

Source from the content-addressed store, hash-verified

311
312 @classmethod
313 def new_cluster(cls, ClusterCls, *, cluster_kwargs={}, initdb_options={}):
314 cluster = _init_cluster(ClusterCls, cluster_kwargs,
315 _get_initdb_options(initdb_options))
316 cls._clusters.append(cluster)
317 return cluster
318
319 @classmethod
320 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