Skip to content
SPECIFICTION
Get listed

sqlfmt vs Valk Guard

sqlfmt

github.com

Valk Guard

github.com

Side by side

FiguresqlfmtValk Guard
Price fromFree—
Free planYes—
Free trial——
Open source——
WebYes—
Windows—Yes
macOS—Yes
LinuxYesYes
APIYes—
Self-hostedYes—
Plans published10
Spec score · SQL Linters and Formatters8.5 (#3)6.7 (#26)
Licensesqlfmt is distributed under the PostgreSQL Licence.The repository identifies Valk Guard as Apache 2.0 licensed.
Purposesqlfmt is a gofmt-style command-line formatter for PostgreSQL SQL.Valk Guard is a SQL linter that scans raw SQL and application code to catch risky queries before they merge.

Plans

sqlfmt

  • Browser formatterFree

sqlfmt pricing →

Valk Guard

No plans published.

Valk Guard pricing →

In their own words

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

Valk Guard

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

Visit github.com