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

Method trust_local_connections

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

Source from the content-addressed store, hash-verified

416 'cannot modify HBA records: {}'.format(e)) from e
417
418 def trust_local_connections(self):
419 self.reset_hba()
420
421 if _system != 'Windows':
422 self.add_hba_entry(type='local', database='all',
423 user='all', auth_method='trust')
424 self.add_hba_entry(type='host', address='127.0.0.1/32',
425 database='all', user='all',
426 auth_method='trust')
427 self.add_hba_entry(type='host', address='::1/128',
428 database='all', user='all',
429 auth_method='trust')
430 status = self.get_status()
431 if status == 'running':
432 self.reload()
433
434 def trust_local_replication_by(self, user):
435 if _system != 'Windows':

Callers 4

test_pool_authMethod · 0.80
tearDownMethod · 0.80
tearDownMethod · 0.80
_init_clusterFunction · 0.80

Calls 4

reset_hbaMethod · 0.95
add_hba_entryMethod · 0.95
get_statusMethod · 0.95
reloadMethod · 0.95

Tested by 3

test_pool_authMethod · 0.64
tearDownMethod · 0.64
tearDownMethod · 0.64