Side by side
prettier-plugin-sql-cst vs Squawk
Both stand on sql linters and formatters. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan Web
prettier-plugin-sql-cst offers SQL formatting within Prettier, with full support for SQLite and BigQuery. Check parser limitations before relying on it for PostgreSQL, PL/pgSQL, MySQL, or MariaDB.
Visit prettier-plugin-sql-cst Free plan AndroidAPIExtension+6
Squawk offers PostgreSQL-focused migration linting across local, editor, and pull request workflows. Teams should note its limited dialect scope and the need to enable some rules themselves.
Visit SquawkThe facts
| prettier-plugin-sql-cst | Squawk | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Web | Android, API, Extension, iPhone, Linux, Mac, Self-hosted, Web, Windows |
| Lowest paid plan | Not published | Not published |
| Plans published | None | None |
| Maker | Not published | Not published |
| Website | github.com | squawkhq.com |
| On sql linters and formatters | #18 of 26 | #22 of 26 |
prettier-plugin-sql-cst: what it does well
- Full support for SQLite and BigQuery
- Adjusts SQL layout to expression length
- Works with Prettier’s VSCode extension
- Offers casing options for SQL elements
- Links to a live SQL formatting playground
What to know first
- Four listed dialects have experimental support
- Bound SQL placeholders are rejected by default
- Formatting style details remain subject to change
- Identifier and function case options are experimental
Squawk: what it does well
- Free and open source.
- Linting available in the CLI and VS Code.
- GitHub Action can check modified migrations.
- Configuration can include or exclude rules and paths.
- Browser playground lints SQL using WebAssembly.
What to know first
- Supports PostgreSQL only.
- No automatic fixes or custom rules.
- Some rules must be enabled explicitly.
- GitHub App needs Pull Requests write permission to comment.
Alternatives to prettier-plugin-sql-cst Alternatives to Squawk The whole list