fix_file
Fix SQL files with SQLFluff, respecting .sqlfluff config. Optionally write the corrected SQL back to the file or return it.
Instructions
Fix a SQL file on disk, honoring discovered .sqlfluff config.
Args: path: Path to the SQL file to fix. write: If True, overwrite the file in place with the fixed SQL. If False (default), just return the fixed SQL without touching the file. config_path: Optional path to an extra config file to layer on top of whatever is discovered by walking the directory tree.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| write | No | ||
| config_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||