
SQL Formatter
6.3#9 in sql linters and formattersFree planFree planWebExtensionLinuxmacOS
Visit
| Fact | SQL Formatter | sqlfmt |
|---|---|---|
| Editor integrations | The project lists VS Code and Vim extensions, a Prettier plugin, and an ESLint plugin integration. | The repository provides an Emacs sqlfmt-mode and a Vim ftplugin using formatprg and equalprg. |
| License | The software is released under the MIT license. | sqlfmt is distributed under the PostgreSQL Licence. |
| Purpose | SQL Formatter is a JavaScript library for pretty-printing SQL queries. | sqlfmt is a gofmt-style command-line formatter for PostgreSQL SQL. |
SQL Formatter suits developers who want configurable formatting for supported SQL dialects, whether through a browser, command line, or editor integration. It may not fit workflows that rely on stored procedures, custom delimiters, or complex templating.
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.