PrePAN

Sign in to PrePAN

SQL::Tidy Beautifies SQL code

Author
talexb@github
Date
URL
https://github.com/talexb/sql-tidy
Status
In Review
Good

Synopsis

    my $tidy = SQL::Tidy->new;
    my $sql = 'select foo from bar where baz>0';
    my $result = $tidy->tidy($sql);

This produces the desired result

    select foo
      from bar
     where baz > 0

which is SQL formatted with keywords to the left of a vertical gutter, and
everything else to the right.

Description

This is a module that beautifies SQL code.

Comments

Please sign up to post a review.