sql_format
Format SQL queries with proper indentation, uppercased keywords, and aligned columns for MySQL, PostgreSQL, and SQLite. Improves readability and consistency.
Instructions
Format and prettify SQL queries with proper indentation, uppercased keywords, and aligned columns. Supports MySQL, PostgreSQL, and SQLite syntax.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL query to format | |
| dialect | No | SQL dialect (default: generic) | |
| uppercase | No | Uppercase SQL keywords (default: true) | |
| indent_size | No | Number of spaces for indentation (default: 2) | |
| align_columns | No | Place each SELECT column on its own line (default: true) |