Skip to content
SPECIFICTION
Get listed

PgSanity vs TSQLLint

PgSanity

github.com

TSQLLint

github.com

Side by side

FigurePgSanityTSQLLint
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)7.4 (#19)
LicensePyPI lists the project’s license expression as MIT.The software is distributed under the MIT License, which grants permission to use, copy, modify, distribute, sublicense, and sell copies subject to its conditions.
PurposePgSanity checks the syntax of PostgreSQL SQL files.TSQLLint describes, identifies, and reports anti-patterns in TSQL scripts.
SupportThe README points users to the GitHub project page to report problems.The repository provides issue and discussion navigation, but the opened project pages do not state a formal support offering.

Plans

PgSanity

  • FreeFree

PgSanity pricing →

TSQLLint

  • TSQLLintFree

TSQLLint pricing →

In their own words

PgSanity

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

Visit github.com

TSQLLint

TSQLLint checks T-SQL scripts for anti-patterns and reports the findings. Its command-line tool can correct issues it identifies as auto-fixable with the --fix or -x option. Rules can be set to off, warning, or error; an error-level violation produces a non-zero exit code. Users can save settings in a .tsqllintrc file, or use the tool’s in-memory defaults when no file is present. The listed SQL Server compatibility levels are 80, 90, 100, 110, 120, 130, 140, and 150. Custom .NET plugins can extend it if they implement TSQLLint’s IPlugin interface and target net6.0. Before linting, it substitutes SQL file placeholders with values from environment variables. Official installation methods include dotnet-tool, Homebrew, and NPM. Its VS Code extension marks potential problems in opened .sql files for inspection on hover, and SQL Server Management Studio can invoke it through External Tools. TSQLLint is free under the MIT License and runs on Linux, macOS, and Windows, with an editor extension also listed.

Visit github.com