12 releases (6 breaking)

Uses new Rust 2024

0.34.1 Jan 23, 2026
0.33.0 Jan 12, 2026
0.32.0 Dec 31, 2025
0.29.3 Aug 19, 2025
0.29.2 Jul 30, 2025

#736 in Database interfaces

Download history 68/week @ 2025-10-22 50/week @ 2025-10-29 82/week @ 2025-11-05 32/week @ 2025-11-12 46/week @ 2025-11-19 33/week @ 2025-11-26 34/week @ 2025-12-03 42/week @ 2025-12-10 36/week @ 2025-12-17 19/week @ 2025-12-24 58/week @ 2025-12-31 55/week @ 2026-01-07 140/week @ 2026-01-14 40/week @ 2026-01-21 28/week @ 2026-01-28 37/week @ 2026-02-04

250 downloads per month
Used in sqruff

Apache-2.0

1MB
32K 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

~14–20MB
~364K SLoC