Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 585 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 585 Bytes

SqlBeautify

Java, shell and emacs tool to beautify sql from stdin via igapyon/blancoSqlFormatter.git.

Installation

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

Usage: bin/beautify-sql < <stdin>

#Examples:

$ echo "select * from foo;" | bin/beautify-sql
SELECT
        *
    FROM
        foo
;

Thanks

These tools are inspired by https://www.emacswiki.org/emacs/SqlBeautify.