graflo.db.tigergraph.gsql_parsers¶
Pure parsers for TigerGraph GSQL and REST catalog output.
gsql_result_has_error(result)
¶
Return True when a GSQL response text signals a semantic/runtime failure.
Source code in graflo/db/tigergraph/gsql_parsers.py
is_missing_query_endpoint_error(result)
¶
Return True when REST++ reports an installed query endpoint is missing.
Source code in graflo/db/tigergraph/gsql_parsers.py
is_not_found_error(error)
¶
Return True if the error indicates that an object doesn't exist.
parse_installed_queries_from_ls(result_str)
¶
Parse ls output lines like - my_query() (installed v2).
Source code in graflo/db/tigergraph/gsql_parsers.py
parse_installed_queries_from_rest_endpoints(result, graph_name)
¶
Extract installed query names from GET /endpoints/{graph}?dynamic=true.
Source code in graflo/db/tigergraph/gsql_parsers.py
parse_installed_queries_from_show_query(result_str)
¶
Parse SHOW QUERY * output, keeping only blocks marked # installed.
Source code in graflo/db/tigergraph/gsql_parsers.py
parse_restpp_response(response, is_edge=False)
¶
Parse REST++ API response into list of documents.
Source code in graflo/db/tigergraph/gsql_parsers.py
parse_show_edge_output(result_str)
¶
Parse SHOW EDGE * output to extract edge type names and direction.
Source code in graflo/db/tigergraph/gsql_parsers.py
parse_show_edge_output_with_vertices(output)
¶
Parse SHOW EDGE * output (compact TigerGraph format).
Source code in graflo/db/tigergraph/gsql_parsers.py
parse_show_graph_output(result_str)
¶
Parse SHOW GRAPH * output to extract graph names.
Source code in graflo/db/tigergraph/gsql_parsers.py
parse_show_job_output(result_str)
¶
parse_show_output(result_str, prefix)
¶
Parse SHOW * output to extract type names.