Prettier SQL
5.5#24 in sql linters and formattersFree planFree planSelf-hosted
Visit| Fact | Prettier SQL | sqlfmt |
|---|---|---|
| License | The package is distributed under the MIT license. | sqlfmt is distributed under the PostgreSQL Licence. |
| Purpose | prettier-plugin-sql adds SQL formatting support to Prettier. | sqlfmt is a gofmt-style command-line formatter for PostgreSQL SQL. |
Prettier SQL suits developers who use Prettier and want SQL formatting for supported dialects. It requires a self-hosted setup with Node.js v14.18.0 or later.
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.