SQL::QueryBuilder::Pretty::Print - Query construction object for SQL::QueryBuilder::Pretty's rules.
Version 0.01
use SQL::QueryBuilder::Pretty::Print; my $print = SQL::QueryBuilder::Pretty::Print->new( '-indent_ammount' => 4, '-indent_char' => ' ', '-new_line' => "\n", ); $print->var('SELECT'); $print->new_line; $print->indent(2); $print->var('*'); $print->new_line; $print->unindent; $print->var('FROM'); $print->new_line; $print->indent; $print->var('table_name`;');
Query construction object for SQL::QueryBuilder::Pretty's rules.
Initializes the object. See OPTIONS.
Returns the current indentation spaces.
Increase the indentation level by 1 * $multiplier and appends the current indentation to the query. If no $multiplier is given it uses 1.
Returns the '-indent_amount' option value.
Returns the '-indent_char' option value.
Retturns the current indent level. Add $add to the indent level if set.
Returns the current indent multiplier. Sets indent multiplier to $new_value if set;
Appends a new line to the query.
Returns the constructed query.
Decrease the indentation level by 1 * $multiplier and appends the current indentation to the query. If no $multiplier is given it uses 1.
Appends $value to the query.
Returns/sets skip next space variable.
The number of time '-indent_char' is repeated for each indentation. Default is 4.
Indent char used. Default is ' '.
New line char used. default is "\n",
SQL::QueryBuilder::Pretty and SQL::QueryBuilder::Pretty::Rule.
André Rivotti Casimiro, <rivotti at cpan.org>
<rivotti at cpan.org>
Copyright (C) 2009 by André Rivotti Casimiro. Published under the terms of the Artistic License 2.0.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'André'. Assuming UTF-8
To install SQL::QueryBuilder::Pretty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SQL::QueryBuilder::Pretty
CPAN shell
perl -MCPAN -e shell install SQL::QueryBuilder::Pretty
For more information on module installation, please visit the detailed CPAN module installation guide.