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

Function cleanup_globals

web/pgadmin/tools/psql/__init__.py:583–591  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

581
582
583def cleanup_globals():
584 del pdata[request.sid]
585 del cdata[request.sid]
586 server_id = open_psql_connections[request.sid]
587 del open_psql_connections[request.sid]
588 # Check if all the connections of the adhoc server is closed
589 # then delete the server from the pgadmin database.
590 from pgadmin.misc.workspaces import check_and_delete_adhoc_server
591 check_and_delete_adhoc_server(server_id)
592
593
594def disconnect_socket():

Callers 1

disconnect_socketFunction · 0.85

Calls 1

Tested by

no test coverage detected