MCPcopy Index your code
hub / github.com/marimo-team/marimo / validate_sql

Method validate_sql

marimo/_runtime/callbacks/sql.py:124–136  ·  view source on GitHub ↗

Validate an SQL query

(self, request: ValidateSQLCommand)

Source from the content-addressed store, hash-verified

122
123 @kernel_tracer.start_as_current_span("validate_sql")
124 async def validate_sql(self, request: ValidateSQLCommand) -> None:
125 """Validate an SQL query"""
126
127 try:
128 await self._validate_sql_query(request)
129 except Exception as e:
130 LOGGER.exception("Failed to validate SQL query")
131 broadcast_notification(
132 ValidateSQLResultNotification(
133 request_id=request.request_id,
134 error="Failed to validate SQL query: " + str(e),
135 ),
136 )

Callers

nothing calls this directly

Calls 4

_validate_sql_queryMethod · 0.95
broadcast_notificationFunction · 0.90
exceptionMethod · 0.45

Tested by

no test coverage detected