Java, shell and emacs tool to beautify sql from stdin via igapyon/blancoSqlFormatter.git.
Download the repo, cd into it, and build the jar into lib/SqlBeautify-*.jar
.
git clone [email protected]:ldeck/SqlBeautify.git
cd SqlBeautify
ant
Usage: bin/beautify-sql < <stdin>
#Examples:
$ echo "select * from foo;" | bin/beautify-sql
SELECT
*
FROM
foo
;
These tools are inspired by https://www.emacswiki.org/emacs/SqlBeautify.