PgSanity
5.7#22 in sql linters and formattersFree planFree planLinuxSelf-hosted
Visit| Fact | PgSanity | sqlfmt |
|---|---|---|
| License | PyPI lists the project’s license expression as MIT. | sqlfmt is distributed under the PostgreSQL Licence. |
| Purpose | PgSanity checks the syntax of PostgreSQL SQL files. | sqlfmt is a gofmt-style command-line formatter for PostgreSQL SQL. |
PgSanity suits developers, IT professionals, and system administrators who want to check PostgreSQL SQL files in a command-line or pre-commit workflow.
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.