MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / get_db_password

Function get_db_password

web/regression/python_test_utils/test_utils.py:793–799  ·  view source on GitHub ↗

This function return the password of particular server

(config_servers, name, host, db_port)

Source from the content-addressed store, hash-verified

791
792
793def get_db_password(config_servers, name, host, db_port):
794 """ This function return the password of particular server """
795 db_password = ''
796 for srv in config_servers:
797 if (srv['name'], srv['host'], srv['db_port']) == (name, host, db_port):
798 db_password = srv['db_password']
799 return db_password
800
801
802def get_db_server(sid):

Callers 1

get_db_serverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected