Skip to content

sonota88/anbt-sql-formatter

Repository files navigation

© 2010-2018 sonota88 (yosiot8753@gmail.com)

A tool for SQL formatting ported from BlancoSqlFormatter.

$ ruby setup.rb
$ echo "select a,b from c;" | anbt-sql-formatter
SELECT
        a
        , b
    FROM
        c
;
$

GNU Lesser General Public License.

sonota

Porting to Ruby

Following are Authors of BlancoSqlFormatter(original Java version).

渡辺義則 / Yoshinori WATANABE / A-san

Early development

伊賀敏樹 (Tosiki Iga / いがぴょん)

Maintainance

  • In AnbtSql::Rule:

    • Function names

    • Rules for linefeed and indentation

    • Characters for indentation

    • Upcase or Downcase

  • More farther: Override AnbtSql::Formatter#format_list_main_loop by inheritance or monkeypathcing.

$ ./test.sh

About

A tool for SQL formatting written in Ruby.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 7