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

Function parse_from_file

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

Parses a *.sql file to a list of queries.

(path: Path)

Source from the content-addressed store, hash-verified

145
146
147def parse_from_file(path: Path) -> list[str]:
148 """Parses a *.sql file to a list of queries."""
149 return sqlparse.split(path.read_text())
150
151
152def parse_query(path: Path) -> str:

Callers 1

parse_queryFunction · 0.70

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected