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

Function get_keywords_pg_docs

tools/sql_keywords.py:75–81  ·  view source on GitHub ↗
(docs_url=PG_SQL_DOCS_URL,
                         keyword_regex=PG_SQL_DOCS_REGEX)

Source from the content-addressed store, hash-verified

73
74
75def get_keywords_pg_docs(docs_url=PG_SQL_DOCS_URL,
76 keyword_regex=PG_SQL_DOCS_REGEX):
77 resp_text = get_file_from_url(docs_url)
78 # Sample entry - <code class="token">ABORT</code>
79 keywords = extract_keywords(resp_text, keyword_regex)
80
81 return keywords
82
83
84def get_all_keywords():

Callers 1

get_all_keywordsFunction · 0.85

Calls 2

get_file_from_urlFunction · 0.85
extract_keywordsFunction · 0.85

Tested by

no test coverage detected