evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A Python service that validates and formats SQL queries before execution.
Validates SQL queries to ensure they are syntactically correct before execution.
Formats SQL queries to improve readability and maintain consistent code style.
def validate_sql(query: str, database_uri: str) -> dict:
"""
Validates a SQL query for syntax and safety.
Args:
query: The SQL query string to validate
database_uri: The database connection URI
Returns:
A dictionary with 'valid' (bool) and 'errors' (list) keys
"""
pass
def format_sql(query: str) -> str:
"""
Formats a SQL query for readability.
Args:
query: The SQL query string to format
Returns:
A formatted SQL query string with proper indentation and keyword casing
"""
passProvides SQL validation and formatting capabilities through the SQL Lab module.