projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1bb3956
)
initial formatting script
Arthur Axel "fREW" Schmidt [Sat, 4 Sep 2010 03:31:51 +0000 (
03:31
+0000)]
script/format-sql
[new file with mode: 0755]
patch
|
blob
diff --git a/script/format-sql
b/script/format-sql
new file mode 100755
(executable)
index 0000000..
86d008b
--- /dev/null
+++ b/
script/format-sql
@@ -0,0
+1,7
@@
+#!/usr/bin/env perl
+
+use SQL::Abstract::Tree;
+
+my $sqlat = SQL::Abstract::Tree->new({ profile => 'console' });
+
+print $sqlat->format($_) . "\n" while <>;