85 releases (25 breaking)

Uses new Rust 2024

0.38.0 Apr 12, 2026
0.37.3 Mar 19, 2026
0.36.1 Mar 16, 2026
0.32.0 Dec 31, 2025
0.10.2 Jul 29, 2024

#519 in Text editors

Download history 34/week @ 2026-01-24 48/week @ 2026-01-31 60/week @ 2026-02-07 73/week @ 2026-02-14 75/week @ 2026-02-21 42/week @ 2026-02-28 68/week @ 2026-03-07 123/week @ 2026-03-14 48/week @ 2026-03-21 39/week @ 2026-03-28 91/week @ 2026-04-04 238/week @ 2026-04-11 272/week @ 2026-04-18 315/week @ 2026-04-25 259/week @ 2026-05-02 219/week @ 2026-05-09

1,102 downloads per month
Used in 2 crates (via sqruff-cli-lib)

Apache-2.0

1MB
24K SLoC

sqruff

CodSpeed Badge

sqruff is a SQL linter and formatter written in Rust.

  • Linting: advanced, configurable SQL linting
  • Formatting: automated, configurable formatting
  • Speed: fast and efficient
  • Portability: easy to integrate into dev workflows

Try it in the browser: https://playground.quary.dev

Quickstart

Install (macOS)

brew install sqruff

For other platforms (pip, cargo, binary downloads), see the installation guide.

Lint a project

sqruff lint . --dialect postgres

Configure a project

Create a .sqruff file in your project root:

[sqruff]
dialect = postgres

Then run without the --dialect flag:

sqruff lint .

Documentation

Full documentation: playground.quary.dev/docs

Key entry points:

Dependencies

~12–17MB
~322K SLoC