EVERYTHING XIAOMI
Get listed
Side by side

sqlfmt vs Sqruff

sqlfmt

6.7#3 in sql linters and formattersFree plan
Free planWebAPILinuxSelf-hosted
Visit

Sqruff

6.3#10 in sql linters and formattersFree plan
Free planWebExtensionLinuxmacOS
Visit

What both publish

FactsqlfmtSqruff
Editor integrationsThe 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.
Purposesqlfmt 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.

sqlfmt plans

  • Browser formatterFree

Sqruff plans

  • SqruffFree

Pick sqlfmt if…

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.

Pick Sqruff if…

Sqruff suits developers who want configurable SQL linting and formatting in an editor, browser playground, or CI workflow.

Charts they share