Debugging SQLY queries ensures correctness, performance, and reliability. SQLY provides query logging, execution tracing, error handling, and optimization insights.
Logging SQLY queries helps track execution history and identify issues.
debugging:
logging:
enabled: true
log_level: detailed
output: /var/log/sqly_queries.logThis enables detailed query logging to a specified file.
Tracing provides insights into how queries are processed internally.
debugging:
tracing:
enabled: true
query:
select: [order_id, total]
from: orders
where:
total: "> 500"This traces execution steps for a specific query.
SQLY captures and reports errors to assist debugging.
debugging:
error_handling:
log_errors: true
capture_stack_trace: true
output: /var/log/sqly_errors.logThis logs errors along with stack traces for debugging.
SQLY provides execution plans to optimize queries.
debugging:
execution_plan:
query:
select: [product_id, sales]
from: sales_data
where:
sales: "> 1000"This retrieves the execution plan for a query, highlighting optimization opportunities.
- Query logging tracks execution history.
- Execution tracing provides query insights.
- Error handling captures and logs errors.
- Execution plan analysis helps optimize queries.