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

Function _run_sql

misc/python/materialize/cli/run.py:594–597  ·  view source on GitHub ↗
(conn: psycopg.Connection, sql: str)

Source from the content-addressed store, hash-verified

592
593
594def _run_sql(conn: psycopg.Connection, sql: str) -> None:
595 print(f"> {sql}")
596 with conn.cursor() as cur:
597 cur.execute(sql.encode("utf-8"))
598
599
600def _handle_lingering_services(kill: bool = False) -> None:

Callers 2

mainFunction · 0.85
_connect_sqlFunction · 0.85

Calls 3

cursorMethod · 0.80
executeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected