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

Method query_one

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

Source from the content-addressed store, hash-verified

133 cursor.execute(statement.encode())
134
135 def query_one(self, query: str) -> dict[Any, Any]:
136 with self.conn.cursor() as cursor:
137 cursor.execute(query.encode())
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:

Callers 2

versionMethod · 0.95
mz_versionMethod · 0.95

Calls 3

cursorMethod · 0.80
executeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected