Structured metadata for SQL parsing errors.
| 36 | |
| 37 | |
| 38 | class SQLErrorMetadata(TypedDict): |
| 39 | """Structured metadata for SQL parsing errors.""" |
| 40 | |
| 41 | lint_rule: str |
| 42 | error_type: str |
| 43 | clean_message: str |
| 44 | hint: str | None |
| 45 | node_lineno: int |
| 46 | node_col_offset: int |
| 47 | sql_statement: str |
| 48 | sql_line: int | None |
| 49 | sql_col: int | None |
| 50 | context: str |
| 51 | |
| 52 | |
| 53 | def is_sql_parse_error(exception: BaseException) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…