78 releases (20 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.21.6 Nov 30, 2024

#630 in Template engine

Download history 3902/week @ 2026-01-02 9843/week @ 2026-01-09 2272/week @ 2026-01-16 8818/week @ 2026-01-23 9417/week @ 2026-01-30 7779/week @ 2026-02-06 3925/week @ 2026-02-13 6178/week @ 2026-02-20 8026/week @ 2026-02-27 6999/week @ 2026-03-06 6021/week @ 2026-03-13 16172/week @ 2026-03-20 11759/week @ 2026-03-27 6847/week @ 2026-04-03 10266/week @ 2026-04-10 9862/week @ 2026-04-17

42,486 downloads per month
Used in 9 crates (4 directly)

Apache-2.0

380KB
10K 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

~4–6MB
~113K SLoC