Expand description
AST-based SQL Formatter
This module provides proper SQL formatting by traversing the parsed AST, which is more reliable than regex-based formatting and handles complex features like CTEs, subqueries, and expressions correctly.
Structs§
- Format
Config - Configuration for SQL formatting
Functions§
- format_
select_ statement - Format a SELECT statement into pretty SQL
- format_
select_ with_ config - Format a SELECT statement with custom configuration
- format_
sql_ ast - Parse and format SQL query using the AST
- format_
sql_ ast_ with_ config - Parse and format SQL with custom configuration