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

Function statement_ok

test/sql-feature-flags/mzcompose.py:73–75  ·  view source on GitHub ↗

Generate a TD command that executes `statement`.

(statement: str)

Source from the content-addressed store, hash-verified

71
72
73def statement_ok(statement: str) -> str:
74 """Generate a TD command that executes `statement`."""
75 return indent(statement.strip(), prefix=" ").replace(" ", "> ", 1)
76
77
78def query_ok(query: str) -> str:

Callers 4

phase1Method · 0.85
phase2Method · 0.85
phase3Method · 0.85
reset_allMethod · 0.85

Calls 2

indentFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected