Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

sqruff

> 数据库
Open source

Fast SQL formatter/linter

1.4K stars0 likes4 views
WebsiteGitHub

About

Fast SQL formatter/linter

</picture>
<h1 align="center">sqruff</h1>

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)

bash
brew install sqruff

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

Lint a project

bash
sqruff lint . --dialect postgres

Configure a project

Create a .sqruff file in your project root:

ini
[sqruff]
dialect = postgres

Then run without the --dialect flag:

bash
sqruff lint .

Editor integrations

sqruff ships an LSP server (sqruff lsp) usable from any editor. This repo maintains two integrations:

  • VS Code: editors/code
  • Zed: editors/zed

Documentation

Full documentation: playground.quary.dev/docs

Key entry points:

  • Installation
  • Usage
  • Configuration
  • Rules
  • CLI reference

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustansibigqueryclickhouselinter

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库