File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/mcp_server_sql_analyzer Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Update your personal preferences in Claude Desktop settings to request that gene
36
36
- Validates SQL query syntax and returns any errors
37
37
- Input:
38
38
- sql (string): SQL query to analyze
39
- - dialect (string, optional): SQL dialect (e.g., 'mysql', 'postgresql ')
39
+ - dialect (string, optional): SQL dialect (e.g., 'mysql', 'postgres ')
40
40
- Returns: ParseResult containing:
41
41
- is_valid (boolean): Whether the SQL is valid
42
42
- message (string): Error message or "No syntax errors"
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ def lint_sql(sql: str, dialect: str = "") -> ParseResult:
93
93
94
94
Args:
95
95
sql: SQL query to analyze
96
- dialect: Optional SQL dialect (e.g., 'mysql', 'postgresql ')
96
+ dialect: Optional SQL dialect (e.g., 'mysql', 'postgres ')
97
97
98
98
Returns:
99
99
error message or "No syntax errors" if parsing succeeds
@@ -160,7 +160,7 @@ def get_all_table_references(
160
160
161
161
Args:
162
162
sql: SQL statement to analyze
163
- dialect: Optional SQL dialect (e.g., 'mysql', 'postgresql ')
163
+ dialect: Optional SQL dialect (e.g., 'mysql', 'postgres ')
164
164
Returns:
165
165
JSON object containing tables with catalog, database, and alias attributes
166
166
CTEs are returned as "cte" type
@@ -217,7 +217,7 @@ def get_all_column_references(
217
217
218
218
Args:
219
219
sql: SQL statement to analyze
220
- dialect: Optional SQL dialect (e.g., 'mysql', 'postgresql ')
220
+ dialect: Optional SQL dialect (e.g., 'mysql', 'postgres ')
221
221
Returns:
222
222
JSON object containing column references with table context and any errors
223
223
"""
You can’t perform that action at this time.
0 commit comments