📄️ Installation
sqlfmt is a command-line tool that is built in Python and runs on MacOS, Linux, and Windows.
📄️ Using sqlfmt
sqlfmt is an alpha product and will not always produce the formatted output you might want. It might even break your SQL syntax.
📄️ Configuring sqlfmt
You probably don't need to configure sqlfmt at all! sqlfmt supports nearly all SQL dialects without configuration, and doesn't require a jinja templater.
📄️ Disabling sqlfmt
If you would like sqlfmt to ignore a file, or part of a file, you can add -- fmt on comments to your code (or # fmt off at the top of a file will keep the entire file intact.
📄️ Formatting Jinja
sqlfmt loves properly-formatted jinja, too.