my $sqla_tree = SQL::Abstract::Tree->new({ profile => 'console' }); print $sqla_tree->format('SELECT * FROM foo WHERE foo.a > 2'); # SELECT * # FROM foo # WHERE foo.a > 2
my $sqla_tree = SQL::Abstract::Tree->new({ profile => 'console' });
$sqlat->format('SELECT * FROM bar')
Returns a formatting string based on wthe string passed in
To install SQL::Abstract, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::Abstract
CPAN shell
perl -MCPAN -e shell install SQL::Abstract
For more information on module installation, please visit the detailed CPAN module installation guide.