sqlfmt
6.7#3 in sql linters and formattersFree planFree planWebAPILinuxSelf-hosted
Visit| Fact | sqlfmt | Sqruff |
|---|---|---|
| Editor integrations | The repository provides an Emacs sqlfmt-mode and a Vim ftplugin using formatprg and equalprg. | Sqruff maintains VS Code and Zed integrations and provides an LSP server for other LSP-capable editors. |
| Purpose | sqlfmt is a gofmt-style command-line formatter for PostgreSQL SQL. | Sqruff is a SQL linter and formatter written in Rust, focused on formatting valid SQL for specific dialects and providing fast linting and fixing. |
It suits PostgreSQL users who want consistent SQL formatting in a CLI, browser, Go program, or supported editor. Its EXPLAIN tools may also suit teams comparing plan structure in scripts or CI.
Sqruff suits developers who want configurable SQL linting and formatting in an editor, browser playground, or CI workflow.