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

Function execute_async_search_path

web/pgadmin/tools/debugger/__init__.py:286–299  ·  view source on GitHub ↗
(conn, sql, search_path)

Source from the content-addressed store, hash-verified

284
285
286def execute_async_search_path(conn, sql, search_path):
287 if conn.transaction_status() == 1:
288 return True, BUSY
289
290 sql_search = SET_SEARCH_PATH.format(search_path)
291 status, res = conn.execute_void(sql_search)
292
293 if not status:
294 current_app.logger.debug(
295 "Error setting the search path.")
296 return False, res
297
298 status, res = conn.execute_async(sql)
299 return status, res
300
301
302def check_server_type(server_type, manager):

Callers 2

start_debugger_listenerFunction · 0.85
execute_debugger_queryFunction · 0.85

Calls 3

transaction_statusMethod · 0.45
execute_voidMethod · 0.45
execute_asyncMethod · 0.45

Tested by

no test coverage detected