Skip to content
SPECIFICTION
Get listed

PgSanity vs Sleek

PgSanity

github.com

Sleek

github.com

Side by side

FigurePgSanitySleek
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
Windows—Yes
macOS—Yes
LinuxYesYes
Self-hostedYes—
Plans published11
Spec score · SQL Linters and Formatters7.9 (#11)8.0 (#9)
LicensePyPI lists the project’s license expression as MIT.The project is available under the MIT License.
PurposePgSanity checks the syntax of PostgreSQL SQL files.Sleek is a command-line tool for formatting SQL to maintain consistent style and readability.

Plans

PgSanity

  • FreeFree

PgSanity pricing →

Sleek

  • SleekFree

Sleek pricing →

In their own words

PgSanity

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

Visit github.com

Sleek

Sleek is a command-line SQL formatter for applying consistent styles across SQL files. Its configurable options include indentation, keyword casing, and blank lines between queries. You can pass file paths or glob patterns, or provide input through standard input when no paths are supplied. The `--check` flag reports whether files are formatted without changing them. Sleek supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, and Oracle. Its VS Code extension can format documents or selections, check formatting, and optionally format on save or paste; it can also download the CLI when it is not found. The CLI is available as compiled binaries or through Cargo, which requires Rust, and the project directs users to choose a binary for their operating system and architecture. Sleek is available under the MIT License, with formatting handled by the `sqlformat` crate. Building release v0.4.0 requires Rust 1.85 or later. The listed plan is free, with a free plan and no free trial.

Visit github.com