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

Method __init__

asyncpg/cluster.py:624–630  ·  view source on GitHub ↗
(self, *,
                 data_dir_suffix=None, data_dir_prefix=None,
                 data_dir_parent=None, pg_config_path=None)

Source from the content-addressed store, hash-verified

622
623class TempCluster(Cluster):
624 def __init__(self, *,
625 data_dir_suffix=None, data_dir_prefix=None,
626 data_dir_parent=None, pg_config_path=None):
627 self._data_dir = _mkdtemp(suffix=data_dir_suffix,
628 prefix=data_dir_prefix,
629 dir=data_dir_parent)
630 super().__init__(self._data_dir, pg_config_path=pg_config_path)
631
632
633class HotStandbyCluster(TempCluster):

Callers

nothing calls this directly

Calls 2

_mkdtempFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected