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

Method destroy

asyncpg/cluster.py:302–307  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

300 self._daemon_process.kill()
301
302 def destroy(self):
303 status = self.get_status()
304 if status == 'stopped' or status == 'not-initialized':
305 shutil.rmtree(self._data_dir)
306 else:
307 raise ClusterError('cannot destroy {} cluster'.format(status))
308
309 def _get_connection_spec(self):
310 if self._connection_addr is None:

Callers 2

_shutdown_clusterFunction · 0.45
tearDownClassMethod · 0.45

Calls 2

get_statusMethod · 0.95
ClusterErrorClass · 0.85

Tested by

no test coverage detected