MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / keywords

Function keywords

misc/python/materialize/mzexplore/sql.py:222–231  ·  view source on GitHub ↗

Return a list of keywords reserved by Materialize.

()

Source from the content-addressed store, hash-verified

220
221@functools.lru_cache(maxsize=1)
222def keywords() -> set[str]:
223 """
224 Return a list of keywords reserved by Materialize.
225 """
226 with resource_path("sql/keywords.txt").open() as f:
227 return set(
228 line.strip().upper()
229 for line in f.readlines()
230 if not line.startswith("#") and len(line.strip()) > 0
231 )

Callers 1

identifierFunction · 0.70

Calls 4

resource_pathFunction · 0.90
setFunction · 0.50
openMethod · 0.45
upperMethod · 0.45

Tested by

no test coverage detected