Skip to content
SPECIFICTION
Get listed

pgFormatter vs SQL Formatter VSCode

pgFormatter

github.com

SQL Formatter VSCode

github.com

Side by side

FigurepgFormatterSQL Formatter VSCode
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WebYes—
LinuxYes—
APIYes—
Self-hostedYes—
Plans published11
Spec score · SQL Linters and Formatters8.2 (#6)7.3 (#20)
Formatting optionsOptions include changing keyword, function, identifier, and type case; adjusting indentation; wrapping queries; and choosing comma placement.Settings include keyword, data type, function, and identifier casing, indentation, logical operator line breaks, expression width, spacing around operators, and semicolon placement.
PurposepgFormatter beautifies PostgreSQL SQL queries and PL/pgSQL code, and supports keywords from several SQL standards as well as PostgreSQL-specific keywords.SQL Formatter VSCode is the official VSCode extension of the SQL Formatter library and formats SQL files.

Plans

pgFormatter

  • pgFormatterFree

pgFormatter pricing →

SQL Formatter VSCode

  • FreeFree

SQL Formatter VSCode pricing →

In their own words

pgFormatter

pgFormatter is free software for formatting PostgreSQL SQL queries and PL/pgSQL code. It supports SQL-92, SQL-99, SQL-2003, SQL-2008, SQL-2011 and PostgreSQL syntax, and the project says it also works with other databases. You can run it as a console program or CGI application that returns text or HTML; a CGI request with an application/json Accept header can return JSON. Formatting controls cover keyword, function, identifier and type case, indentation, query wrapping and comma placement. The --anonymize option hides query literals before formatting. The project documents source installation with Perl Makefile.PL, make and make install, Docker use, Vim and (Neo)Vim integration, Atom and Visual Studio Code links, and a pre-commit hook for SQL files. An online demo limits queries to ten thousand characters. It is distributed under the PostgreSQL Licence at free.

Visit github.com

SQL Formatter VSCode

SQL Formatter VSCode has no write-up on Specifiction yet; its figures are above.

Visit github.com