Prettier SQL
5.5#24 in sql linters and formattersFree planFree planSelf-hosted
Visit| Fact | Prettier SQL | SQLFormat.org |
|---|---|---|
| Formatting options | Options include keyword, data type, function, and identifier casing, indentation style, and logical operator line breaks. | Options include keyword and identifier case, indentation, output format, comment removal, and compact mode. |
| License | The package is distributed under the MIT license. | The site says the sqlparse module is released under the New BSD License. |
| Purpose | prettier-plugin-sql adds SQL formatting support to Prettier. | SQLFormat is a free online formatter for SQL statements. |
Prettier SQL suits developers who use Prettier and want SQL formatting for supported dialects. It requires a self-hosted setup with Node.js v14.18.0 or later.
SQLFormat.org suits people who want to format SQL in a browser or through a lightweight API. Its linked Python module may interest developers who want to use sqlparse in their own applications.