Validate an SQL query
(self, request: ValidateSQLCommand)
| 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 | ) |
nothing calls this directly
no test coverage detected