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

Method query_all

misc/python/materialize/optbench/sql.py:140–143  ·  view source on GitHub ↗
(self, query: str)

Source from the content-addressed store, hash-verified

138 return cast(dict[Any, Any], cursor.fetchone())
139
140 def query_all(self, query: str) -> dict[Any, Any]:
141 with self.conn.cursor() as cursor:
142 cursor.execute(query.encode())
143 return cast(dict[Any, Any], cursor.fetchall())
144
145
146# Utility functions

Callers 1

explainMethod · 0.95

Calls 3

cursorMethod · 0.80
executeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected