EVERYTHING XIAOMI
Get listed

Sleek

Sleek is a free command-line tool for formatting SQL files to keep their style consistent and readable.

Place
#12 of 26
Score
6.2
Sleek's website

What Sleek is

Sleek is a free command-line tool for formatting SQL files to keep their style consistent and readable. Its configurable options include indentation, keyword casing, and blank lines between queries. You can pass file paths as arguments, use glob patterns to process multiple files, or provide input through standard input when no paths are given. The --check flag checks formatting without modifying files. Sleek supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, and Oracle. Developers using VS Code can use the extension to format documents or selections, check formatting, and optionally format on save or paste. The extension can download the CLI automatically if it cannot find it. The CLI is available as compiled binaries from GitHub Releases or through Cargo, which requires Rust; users are directed to select a binary matching their operating system and architecture. The project is available under the MIT License and says formatting work is handled by the sqlformat crate. The v0.4.0 release notes require Rust 1.85 or later to build that release.

Good

  • Configures indentation, keyword casing, and blank lines.
  • Glob patterns handle multiple files.
  • Check mode leaves files unchanged.
  • VS Code extension can format selections and documents.
  • Available under the MIT License.

Watch out

  • Cargo installation requires Rust.
  • Building v0.4.0 requires Rust 1.85 or later.
  • Binaries must match the operating system and architecture.

Who it suits

Sleek suits developers who want configurable SQL formatting from the command line or VS Code. Its supported dialects include PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, and Oracle.

Verdict

Sleek offers SQL formatting through a CLI and VS Code extension, with multiple input methods and a non-modifying check mode. Users installing with Cargo or building v0.4.0 should account for the stated Rust requirements.

Plans and prices

From Sleek's own pricing page, checked 3 Oct 2001.

All about pricing
PlanPriceWhat it gives you
SleekFreeOpen-source SQL formatter · MIT License

The facts

Each one read from Sleek's own pages, with the date it was checked.

What it does

Check mode
The --check flag checks whether SQL files are formatted without modifying them.checked 3 Oct 2001
Editor integration
The VS Code extension formats documents and selections, checks formatting, and can optionally format on save or paste.checked 3 Oct 2001
Extension setup
The VS Code extension can download the Sleek CLI automatically when it is not found.checked 3 Oct 2001
Formatting options
It supports configurable indentation, keyword casing, and blank lines between queries.checked 3 Oct 2001
Implementation
The repository says the formatting work is handled by the sqlformat crate.checked 3 Oct 2001
Input methods
Sleek reads file paths as arguments and reads from standard input when no paths are provided.checked 3 Oct 2001
Installation
The CLI is available as compiled binaries from GitHub Releases or through Cargo, which requires Rust.checked 3 Oct 2001
License
The project is available under the MIT License.checked 3 Oct 2001
Multiple files
Sleek accepts glob patterns to format multiple files.checked 3 Oct 2001
Purpose
Sleek is a command-line tool for formatting SQL to maintain consistent style and readability.checked 3 Oct 2001
Security
The repository page shows a Security and quality section but states no security certification or compliance claim.checked 3 Oct 2001
Supported systems
The project directs users to choose a release binary matching their operating system and architecture.checked 3 Oct 2001
Upgrade requirement
The v0.4.0 release notes state that Rust 1.85 or later is required to build that release.checked 3 Oct 2001

Money

Free plan
Yeschecked 20 Sep 2001

The company

Maker
The repository owner profile identifies nrempel as Nick Rempel and lists Victoria, BC, Canada.checked 3 Oct 2001
The full review of Sleek

Sleek is a free SQL formatter for developers who want a consistent style in scripts or VS Code. It suits people who need configurable formatting and a way to check files without rewriting them. Its narrow focus is useful for routine cleanup, but it is not a custom-rules linter.

Overview

Sleek formats SQL for readability and consistent presentation, supporting PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, and Oracle. It can automatically fix formatting, but offers no custom rules; choose it for style cleanup rather than broader, tailored enforcement.

Key features

Formatting and file workflows

Indentation, keyword casing, and blank lines between queries are configurable, giving developers control over several visible aspects of query style. Glob patterns let one invocation handle multiple files, while --check reports whether files are formatted without changing them. That makes it suitable for validation steps where rewriting source is not wanted.

The CLI accepts file paths or reads SQL from standard input when no paths are supplied, so it accommodates both named files and piped input. Formatting is handled by the sqlformat crate. The project is MIT-licensed, which makes Sleek a straightforward option for users seeking an open-source formatter.

VS Code integration

The extension can format a whole document or a selection, check formatting, and optionally format on save or paste. It can download the CLI if it is not already present, which reduces manual setup for VS Code users. The extension is the clearest choice for people who want formatting within their editor; users outside VS Code can use the CLI instead.

Pricing

Sleek is free: the Sleek plan costs nothing and includes an open-source SQL formatter under the MIT License. There is no paid tier or trial to weigh against it. Its lack of custom rules is the main functional compromise, not a pricing restriction.

Platforms

Sleek supports Linux, macOS, and Windows through release binaries chosen to match the operating system and architecture. The CLI is also available through Cargo, which requires Rust; building v0.4.0 requires Rust 1.85 or later. VS Code users can install the extension, which can fetch the CLI when needed. The project makes no security certification or compliance claim.

Who it's for

Sleek fits developers who want a free formatter for one of its six supported SQL dialects, especially those who work in VS Code or need to check multiple files without modifying them. It is less suitable for teams that need custom formatting rules or users who want a tool focused on something beyond formatting.

Pros and cons

  • Pros: Configurable indentation, casing, and query spacing let users adapt the output to a preferred style.
  • Pros: Glob patterns and non-modifying check mode support both batch formatting and validation workflows.
  • Pros: VS Code formatting for documents and selections, with optional save or paste formatting, brings the workflow into the editor.
  • Cons: No custom rules means teams cannot use Sleek to enforce their own tailored SQL conventions.
  • Cons: Cargo installation requires Rust, and building v0.4.0 specifically requires Rust 1.85 or later.

Alternatives

Browse SQL Linters and Formatters for more options in this category.

  • SQLCheck is another free, open-source command-line option for Linux, macOS, and Windows.
  • Sqruff is another free option, with listed support for extensions, web, and self-hosted use in addition to desktop systems.
  • Poor SQL offers free online and offline formatting, plus an SSMS/Visual Studio plugin and command-line access.
  • SQL Formatter provides a free MIT-licensed formatting library and browser demo, alongside extension and desktop availability.
  • sqlfmt has a free browser formatter that runs via WebAssembly without requiring installation.
  • Squawk is a free alternative with availability across a broad set of platforms, including mobile, web, and self-hosted options.
  • TSQLLint is a free, MIT-licensed option installable with dotnet-tool, Homebrew, or NPM.
  • JSQLFormatter is another free option for Linux, macOS, Windows, and self-hosted use.

Verdict

Choose Sleek if you want free, configurable SQL formatting with practical CLI workflows and a VS Code extension. Its check mode is a particularly useful fit when files should be assessed without being changed. Look elsewhere if custom rules are essential or you need a broader SQL analysis tool.

Alternatives to Sleek

All alternatives
  1. 1

    Poor SQL

    Free planOpen sourceWebAPIExtensionLinux
    7.3Free plan
  2. 2

    SQLFormat.org

    Free planOpen sourceWebAPIExtensionSelf-hosted
    7.1Free plan
  3. 3

    sqlfmt

    Free planWebAPILinuxSelf-hosted
    6.7Free plan
  4. 4

    RegSQL

    Free planWeb
    6.5From $8 a month
  5. 5

    SQLCheck

    Free planLinuxmacOSWindows
    6.5Free plan
  6. 6

    sqlfmt

    Free planWebAPI
    6.5From $9 a month