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

Function connect_database

web/pgadmin/tools/schema_diff/__init__.py:398–406  ·  view source on GitHub ↗
(sid, did)

Source from the content-addressed store, hash-verified

396)
397@pga_login_required
398def connect_database(sid, did):
399 server = get_server_access(sid)
400 if server is None:
401 return make_json_response(
402 status=410, success=0,
403 errormsg=gettext("Could not find the required server.")
404 )
405 view = SchemaDiffRegistry.get_node_view('database')
406 return view.connect(server.servergroup_id, sid, did)
407
408
409@blueprint.route(

Callers

nothing calls this directly

Calls 4

make_json_responseFunction · 0.90
gettextFunction · 0.85
get_node_viewMethod · 0.80
connectMethod · 0.45

Tested by

no test coverage detected