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

Function get_server

web/pgadmin/utils/__init__.py:361–368  ·  view source on GitHub ↗

Fetch a server by ID with access check. Delegates to server_access.get_server(). Kept here for backward compatibility — existing callers import from pgadmin.utils.

(sid, only_owned=False)

Source from the content-addressed store, hash-verified

359
360
361def get_server(sid, only_owned=False):
362 """Fetch a server by ID with access check.
363
364 Delegates to server_access.get_server(). Kept here for backward
365 compatibility — existing callers import from pgadmin.utils.
366 """
367 from pgadmin.utils.server_access import get_server as _get_server
368 return _get_server(sid, only_owned=only_owned)
369
370
371def get_binary_path_versions(binary_path: str) -> dict:

Callers 11

get_server_nameMethod · 0.90
_connect_serverFunction · 0.90
check_utility_existsFunction · 0.90
get_server_nameMethod · 0.90
create_maintenance_jobFunction · 0.90
check_utility_existsFunction · 0.90
get_server_nameMethod · 0.90
check_utility_existsFunction · 0.90
objectsFunction · 0.90
detailsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected