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

Method query_all

misc/python/materialize/mzexplore/sql.py:69–74  ·  view source on GitHub ↗
(self, query: str)

Source from the content-addressed store, hash-verified

67 return cast(dict[Any, Any], row)
68
69 def query_all(self, query: str) -> DictGenerator:
70 with self.conn.cursor() as cursor:
71 cursor.execute(query)
72 cols = [d[0].lower() for d in cursor.description]
73 for row in cursor.fetchall():
74 yield {key: val for key, val in zip(cols, row)}
75
76 def execute(self, statement: str) -> None:
77 with self.conn.cursor() as cursor:

Callers 6

catalog_itemsMethod · 0.95
object_clustersMethod · 0.95
clone_dependenciesMethod · 0.95
arrangement_sizesMethod · 0.95
update_environmentFunction · 0.45
explainFunction · 0.45

Calls 3

cursorMethod · 0.80
executeMethod · 0.45
lowerMethod · 0.45

Tested by

no test coverage detected