SQL Formatting
The SDF formatter is an extremely fast SQL formatter designed as a drop-in replacement for SQLFluff. It is available natively as part of the SDF cli.sdf format
The entrypoint for the formatter is sdf format
.
Formatting Configuration
You may set a formatting configuration for an SDF project.workspace.sdf.yml
Formatting Reference
The following formatting options are supported.Type | Configuration | Auto-Fix | Default |
---|---|---|---|
Layout | line-length | ✅ | 80 |
Layout | indent | ✅ | 2 |
Layout | commas | ✅ | trailing |