prettier-plugin-sql-cst vs SQLFluff
prettier-plugin-sql-cst
github.comSQLFluff
sqlfluff.comSide by side
| Figure | prettier-plugin-sql-cst | SQLFluff |
|---|---|---|
| Price from | — | Free |
| Free plan | — | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | — |
| Windows | — | Yes |
| macOS | — | Yes |
| Linux | — | Yes |
| API | — | Yes |
| Self-hosted | — | Yes |
| Plans published | 0 | 1 |
| Spec score · SQL Linters and Formatters | 6.9 (#25) | 8.0 (#10) |
| Installation | The README gives npm, pnpm, and yarn commands for installing the plugin with Prettier as a development dependency. | The project’s website directs users to install SQLFluff from PyPI using pip or another Python package manager. |
| Maintainer | The maintainer profile identifies Rene Saarsoo and lists Tartu, Estonia as his location. | The website identifies SQLFluff Ltd. as incorporated in England and gives its registered address as Unit 82a James Carter Road, Mildenhall, Bury St. Edmunds, England, IP28 7DE. |
| Purpose | It is a Prettier plugin for formatting SQL that uses sql-parser-cst and Prettier’s formatting algorithm. | SQLFluff is an open source, dialect-flexible SQL linter designed with ELT applications in mind. |
Plans
In their own words
prettier-plugin-sql-cst
prettier-plugin-sql-cst has no write-up on Specifiction yet; its figures are above.
SQLFluff
SQLFluff is an open-source, dialect-flexible SQL linter designed for ELT applications. It reports style and syntax issues, parses SQL without database access and can automatically fix many violations with one command. Documentation describes support for more than 25 dialects, including T-SQL, PostgreSQL, BigQuery and Snowflake, alongside more than 70 rules for style, structure and best practices. Jinja templating and dbt are supported, and CI/CD integration includes GitHub Actions output for pull-request annotations. SQLFluff is free under the MIT License and installs from PyPI with pip or another Python package manager. It does not execute SQL itself, but templating macros such as dbt's run_query may execute arbitrary SQL. The Jinja templater uses Jinja2 SandboxedEnvironment to limit unsafe code execution. The dbt templater requires the relevant adapter and sqlfluff-templater-dbt package; models accessing a database during compilation require database access. Community support includes documentation, GitHub, Slack and Stack Overflow.