Skip to content
SPECIFICTION
Get listed

PgSanity vs Prettier SQL

PgSanity

github.com

Prettier SQL

github.com

Side by side

FigurePgSanityPrettier SQL
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYes—
Self-hostedYesYes
Plans published11
Spec score · SQL Linters and Formatters7.9 (#11)7.6 (#14)
How it worksIt wraps bare SQL as embedded SQL in a C-like file and uses ecpg, which uses PostgreSQL’s parser, to report syntax errors.The plugin uses sql-formatter or node-sql-parser to format SQL files.
LicensePyPI lists the project’s license expression as MIT.The package is distributed under the MIT license.
PurposePgSanity checks the syntax of PostgreSQL SQL files.prettier-plugin-sql adds SQL formatting support to Prettier.

Plans

PgSanity

  • FreeFree

PgSanity pricing →

Prettier SQL

  • MIT-licensed open-source packageFree

Prettier SQL pricing →

In their own words

PgSanity

PgSanity has no write-up on Specifiction yet; its figures are above.

Visit github.com

Prettier SQL

Prettier SQL has no write-up on Specifiction yet; its figures are above.

Visit github.com