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

Method execute

misc/python/materialize/optbench/sql.py:126–128  ·  view source on GitHub ↗
(self, statement: str)

Source from the content-addressed store, hash-verified

124 return ExplainOutput("\n".join([col for line in result for col in line]))
125
126 def execute(self, statement: str) -> None:
127 with self.conn.cursor() as cursor:
128 cursor.execute(statement.encode())
129
130 def execute_all(self, statements: list[str]) -> None:
131 with self.conn.cursor() as cursor:

Callers 6

drop_databaseMethod · 0.95
create_databaseMethod · 0.95
execute_allMethod · 0.45
query_oneMethod · 0.45
query_allMethod · 0.45
_execute_with_cursorMethod · 0.45

Calls 2

cursorMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected