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

Method __init__

asyncpg/cluster.py:78–89  ·  view source on GitHub ↗
(self, data_dir, *, pg_config_path=None)

Source from the content-addressed store, hash-verified

76
77class Cluster:
78 def __init__(self, data_dir, *, pg_config_path=None):
79 self._data_dir = data_dir
80 self._pg_config_path = pg_config_path
81 self._pg_bin_dir = (
82 os.environ.get('PGINSTALLATION')
83 or os.environ.get('PGBIN')
84 )
85 self._pg_ctl = None
86 self._daemon_pid = None
87 self._daemon_process = None
88 self._connection_addr = None
89 self._connection_spec_override = None
90
91 def get_pg_version(self):
92 return self._pg_version

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 1

getMethod · 0.80

Tested by

no test coverage detected