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

Method trust_local_replication_by

asyncpg/cluster.py:434–446  ·  view source on GitHub ↗
(self, user)

Source from the content-addressed store, hash-verified

432 self.reload()
433
434 def trust_local_replication_by(self, user):
435 if _system != 'Windows':
436 self.add_hba_entry(type='local', database='replication',
437 user=user, auth_method='trust')
438 self.add_hba_entry(type='host', address='127.0.0.1/32',
439 database='replication', user=user,
440 auth_method='trust')
441 self.add_hba_entry(type='host', address='::1/128',
442 database='replication', user=user,
443 auth_method='trust')
444 status = self.get_status()
445 if status == 'running':
446 self.reload()
447
448 def _init_env(self):
449 if not self._pg_bin_dir:

Callers 1

setup_clusterMethod · 0.80

Calls 3

add_hba_entryMethod · 0.95
get_statusMethod · 0.95
reloadMethod · 0.95

Tested by

no test coverage detected