FREEDOM251

Freedom251 › Compare

Side by side

Prettier SQL vs SQLFluff

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.

Prettier SQL

Free plan Self-hosted

Prettier SQL adds configurable SQL formatting to a self-hosted Prettier setup, with broad listed dialect support. Its development status and Node.js requirement are important considerations.

Visit Prettier SQL

SQLFluff

Free plan APILinuxMac+2

SQLFluff offers broad dialect support, configurable rules, and automated fixes without executing SQL itself. Teams using dbt should account for the extra templater requirements and possible compile-time database access.

Visit SQLFluff

The facts

Prettier SQLSQLFluff
Free planYesYes
Open sourceNot publishedNot published
Runs onSelf-hostedAPI, Linux, Mac, Self-hosted, Windows
Lowest paid planFree or on requestFree or on request
Plans published11
MakerNot publishedNot published
Websitegithub.comsqlfluff.com
On sql linters and formatters#11 of 26#7 of 26

Prettier SQL: what it does well

  • Free package distributed under the MIT license.
  • Supports a wide range of SQL dialects.
  • Formatting options include casing and indentation.
  • Can format embedded SQL with prettier-plugin-embed.
  • Configuration files and automatic fixes are supported.

What to know first

  • Requires Node.js v14.18.0 or later.
  • README describes the plugin as under development.
  • Formatting may not always match Prettier.

SQLFluff: what it does well

  • Free under the MIT License
  • Supports more than 25 SQL dialects
  • Autofixes many linting violations
  • Parses SQL without database access
  • Supports Jinja, dbt, and CI/CD

What to know first

  • dbt templating needs an adapter and additional package
  • Compile-time database access may be required for some models
  • Some templating macros may execute SQL

Alternatives to Prettier SQL Alternatives to SQLFluff The whole list