sqlfmt

SQL formatter with intelligent width-aware output formatting

brewmacoslinux
Try with needOr install directly
Source

About

SQL formatter with width-aware output

Commands

sqlfmt

Examples

Format a SQL file and display the output$ sqlfmt query.sql
Format SQL file in-place with 88 character line width$ sqlfmt -w 88 query.sql
Format SQL from stdin and output to stdout$ cat query.sql | sqlfmt -