sqlchisel reads formatter settings from .sqlchisel.toml and then applies CLI overrides.
Resolution order:
- If
--config <PATH>is provided, that file is used. - Otherwise,
sqlchisellooks for.sqlchisel.tomlin the current working directory. - If no config file is found, built-in defaults are used.
Precedence:
- Built-in defaults
- Config file values
- CLI flags (highest precedence)
line_length = 100
indent_width = 2
keyword_case = "upper"
dialect = "ansi"
select_list_style = "auto"
strict = falseline_length(usize): target print width. Default:100.indent_width(usize): spaces per indent level. Default:2.keyword_case("upper" | "lower" | "capitalize"): keyword rendering. Default:"upper".dialect("ansi" | "dremio"): parser/formatter dialect. Default:"ansi".select_list_style("auto" | "per_line"): select-list layout strategy. Default:"auto".strict(bool): fail on parse errors instead of raw fallback. Default:false.
These flags override config values for the current run:
--line-length--indent-width--keyword-case--dialect--select-list-style--strict(enables strict mode)