pgFormatter
6.2#11 in sql linters and formattersFree planFree planWebAPILinuxSelf-hosted
Visit| Fact | pgFormatter | sqlfmt |
|---|---|---|
| Editor integrations | The README describes use with Vim and (Neo)Vim and links to Atom and Visual Studio Code integrations. | The repository provides an Emacs sqlfmt-mode and a Vim ftplugin using formatprg and equalprg. |
| Purpose | pgFormatter beautifies PostgreSQL SQL queries and PL/pgSQL code, and supports keywords from several SQL standards as well as PostgreSQL-specific keywords. | sqlfmt is a gofmt-style command-line formatter for PostgreSQL SQL. |
It suits developers who want to format PostgreSQL or PL/pgSQL code and adjust layout or casing. It may also fit SQL workflows that use console, CGI, editor, Docker, or pre-commit setups.
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.