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

Function _shutdown_cluster

asyncpg/_testbase/__init__.py:263–267  ·  view source on GitHub ↗
(cluster)

Source from the content-addressed store, hash-verified

261
262
263def _shutdown_cluster(cluster):
264 if cluster.get_status() == 'running':
265 cluster.stop()
266 if cluster.get_status() != 'not-initialized':
267 cluster.destroy()
268
269
270def create_pool(dsn=None, *,

Callers

nothing calls this directly

Calls 3

get_statusMethod · 0.45
stopMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected