prettier-plugin-sql-cst vs Sleek
prettier-plugin-sql-cst
github.comSleek
github.comSide by side
| Figure | prettier-plugin-sql-cst | Sleek |
|---|---|---|
| Price from | — | Free |
| Free plan | — | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | — |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | — | Yes |
| Plans published | 0 | 1 |
| Spec score · SQL Linters and Formatters | 6.9 (#25) | 8.0 (#9) |
| Editor integration | The plugin can be used with Prettier’s VSCode extension, configured as the default formatter, with document selectors potentially needed for SQL files. | The VS Code extension formats documents and selections, checks formatting, and can optionally format on save or paste. |
| Installation | The README gives npm, pnpm, and yarn commands for installing the plugin with Prettier as a development dependency. | The CLI is available as compiled binaries from GitHub Releases or through Cargo, which requires Rust. |
| License | The repository identifies the project as GPL-3.0 licensed. | The project is available under the MIT License. |
| Purpose | It is a Prettier plugin for formatting SQL that uses sql-parser-cst and Prettier’s formatting algorithm. | Sleek is a command-line tool for formatting SQL to maintain consistent style and readability. |
Plans
In their own words
prettier-plugin-sql-cst
prettier-plugin-sql-cst has no write-up on Specifiction yet; its figures are above.
Sleek
Sleek is a command-line SQL formatter for applying consistent styles across SQL files. Its configurable options include indentation, keyword casing, and blank lines between queries. You can pass file paths or glob patterns, or provide input through standard input when no paths are supplied. The `--check` flag reports whether files are formatted without changing them. Sleek supports PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, and Oracle. Its VS Code extension can format documents or selections, check formatting, and optionally format on save or paste; it can also download the CLI when it is not found. The CLI is available as compiled binaries or through Cargo, which requires Rust, and the project directs users to choose a binary for their operating system and architecture. Sleek is available under the MIT License, with formatting handled by the `sqlformat` crate. Building release v0.4.0 requires Rust 1.85 or later. The listed plan is free, with a free plan and no free trial.