sqlformat2

sqlparse is a tool for parsing SQL strings. It can generate

Install

All systems
curl cmd.cat/sqlformat2.sh
Arch Arch Linux
pacman -S python2-sqlparse
Fedora
dnf install python2-sqlparse

python2-sqlparse

sqlparse is a tool for parsing SQL strings. It can generate

pretty-printed renderings of SQL in various formats. It is a python module, together with a command-line tool.