format_sql
Formats SQL to BSG standards: uppercase keywords, leading-comma SELECT columns, normalized clause indentation, separate AND/OR lines, 4-space BEGIN...END blocks, and removes inline -- comments.
Instructions
Applies BSG-standard formatting to SQL: uppercases keywords, reformats SELECT columns to leading-comma style, normalizes clause indentation (FROM/WHERE/JOIN), separates AND/OR conditions to their own lines, normalizes BEGIN...END indentation to 4 spaces, and removes inline -- comments from the code body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL text to format |