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)
| 359 | |
| 360 | |
| 361 | def 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 | |
| 371 | def get_binary_path_versions(binary_path: str) -> dict: |
no outgoing calls
no test coverage detected