Skip to content
SPECIFICTION
Get listed

SQL Enlight vs sqlfmt

SQL Enlight

sqlenlight.com

sqlfmt

github.com

Side by side

FigureSQL Enlightsqlfmt
Price from—Free
Free plan—Yes
Free trialYes—
Open source——
Web—Yes
WindowsYes—
Linux—Yes
APIYesYes
Self-hostedYesYes
Plans published21
Spec score · SQL Linters and Formatters8.1 (#8)8.5 (#3)
PurposeSQL Enlight is a static code analysis and refactoring tool for SQL Server and T-SQL.sqlfmt is a gofmt-style command-line formatter for PostgreSQL SQL.

Plans

SQL Enlight

  • SQL Enlight for Build MachinesPriced on request
  • SQL Enlight for DevelopersPriced on request

SQL Enlight pricing →

sqlfmt

  • Browser formatterFree

sqlfmt pricing →

In their own words

SQL Enlight

SQL Enlight is a static analysis and refactoring tool for SQL Server and T-SQL. It examines code and databases for defects and supports server health monitoring, diagnosis, and performance tuning. Developers can validate syntax, run automated reviews, and apply automatic fixes to some code and database issues. Formatting, script summaries, and outlines help make large scripts easier to work with; sections can also be extracted into stored procedures or functions. Developers and database administrators can create custom analysis rules with XPath and XSLT. The tool integrates with SQL Server Management Studio and Visual Studio, and supports build workflows through Team Foundation Server check-in policies, MSBuild tasks, a command-line interface, and an Automation API. Its Azure DevOps extension supports build analysis, quality gates, reports, and pull-request checks and comments; a SonarQube plugin adds T-SQL issues, measures, rules, and quality-gate integration. SQL Enlight supports SQL Server 2005 through 2022, including Azure SQL Database. The paid product has a 14-day evaluation period. Licenses include email support, updates, and documentation access.

Visit sqlenlight.com

sqlfmt

sqlfmt is a free formatter for PostgreSQL SQL, available as a command-line tool and as a browser formatter running through WebAssembly. Its river-aligned style pads clause keywords so they share a column. The CLI reads SQL from files or stdin and writes formatted SQL to stdout; it can also rewrite files in place, list files needing changes, and show unified diffs. Its explain subcommand formats PostgreSQL plan text and can provide advice, canonicalized output, or structural comparisons. Plan advice describes join order, join and access methods, and parallelism, without costs, row estimates, or timing. The explain diff operation returns exit code 0 for structurally identical plans and 1 when structures differ, so it can be used in scripts and CI. A Go subpackage provides formatting for Go programs, and the project includes Emacs and Vim integrations. The browser build exposes formatting and version functions to JavaScript. Deeply nested subqueries and less common upsert or DDL forms remain best-effort areas. sqlfmt is intended for standalone formatting and SQL used in The Art of PostgreSQL book and courses.

Visit github.com