MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / update_server_id

Method update_server_id

web/pgadmin/misc/bgprocess/processes.py:901–909  ·  view source on GitHub ↗
(_pid, _sid)

Source from the content-addressed store, hash-verified

899
900 @staticmethod
901 def update_server_id(_pid, _sid):
902 p = Process.for_user(pid=_pid).first()
903
904 if p is None:
905 raise LookupError(PROCESS_NOT_FOUND)
906
907 # Update the cloud server id
908 p.server_id = _sid
909 db.session.commit()

Callers 3

deploy_on_azureFunction · 0.95
deploy_on_googleFunction · 0.95
deploy_on_rdsFunction · 0.95

Calls 2

for_userMethod · 0.80
firstMethod · 0.65

Tested by

no test coverage detected