projects
/
dbsrgits/SQL-Abstract.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
add some docs
[dbsrgits/SQL-Abstract.git]
/
lib
/
SQL
/
Abstract
/
Tree.pm
diff --git
a/lib/SQL/Abstract/Tree.pm
b/lib/SQL/Abstract/Tree.pm
index
d626caf
..
78d496a
100644
(file)
--- a/
lib/SQL/Abstract/Tree.pm
+++ b/
lib/SQL/Abstract/Tree.pm
@@
-346,3
+346,14
@@
sub format { my $self = shift; $self->unparse($self->parse(@_)) }
# FROM foo
# WHERE foo.a > 2
+=head1 METHODS
+
+=head2 new
+
+ my $sqla_tree = SQL::Abstract::Tree->new({ profile => 'console' });
+
+=head2 format
+
+ $sqlat->format('SELECT * FROM bar')
+
+Returns a formatting string based on wthe string passed in