pg_format
PostgreSQL SQL syntax beautifier
Install
- All systems
-
curl cmd.cat/pg_format.sh
- Debian
-
apt-get install pgformatter
- Ubuntu
-
apt-get install pgformatter
- Kali Linux
-
apt-get install pgformatter
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install pgformatter
- OS X
-
brew install pgformatter
- Dockerfile
- dockerfile.run/pg_format
pgformatter
PostgreSQL SQL syntax beautifier
This SQL formatter/beautifier supports keywords from SQL-92, SQL-99, SQL-2003, SQL-2008, SQL-2011 and PostgreSQL specifics keywords. May works with any other databases too. pgFormatter can work as a console program or as a CGI. pg_format will automatically detect its environment and output as text or as HTML following the context.