revision 1.67_02 2010-09-08
----------------------------
- - renamed DBIx::Class::Storage::PrettyPrinter to
+ - rename DBIx::Class::Storage::PrettyPrinter to DBIx::Class::Storage::Debug::PrettyPrint
- decreased a lot of indentation from ::Tree
- - cleaned up handling of newlines inside of parens
+ - cleaned up handling of newlines inside of parens
revision 1.67_01 2010-09-06
----------------------------
test_requires "Test::Warn" => 0;
test_requires "Storable" => 0; # for cloning in tests
-no_index package => 'DBIx::Class::Storage::PrettyPrinter';
+no_index package => 'DBIx::Class::Storage::Debug::PrettyPrint';
no_index directory => 'examples';
tests_recursive 't';
-package DBIx::Class::Storage::PrettyPrinter;
+package DBIx::Class::Storage::Debug::PrettyPrint;
use base 'DBIx::Class::Storage::Statistics';
__PACKAGE__->mk_group_accessors( simple => '_sqlat' );
sub new {
- my $class = shift;
+ my $class = shift;
- my $sqlat = SQL::Abstract::Tree->new(shift @_);
- my $self = $class->next::method(@_);
+ my $sqlat = SQL::Abstract::Tree->new(shift @_);
+ my $self = $class->next::method(@_);
- $self->_sqlat($sqlat);
+ $self->_sqlat($sqlat);
- return $self
+ return $self
}
sub query_start {
use parent 'DBIx::Class::Schema';
- use DBIx::Class::Storage::PrettyPrinter;
+ use DBIx::Class::Storage::Debug::PrettyPrint;
__PACKAGE__->load_namespaces;
- my $pp = DBIx::Class::Storage::PrettyPrinter->new({ profile => 'console' });
+ my $pp = DBIx::Class::Storage::Debug::PrettyPrint->new({
+ profile => 'console',
+ });
sub connection {
- my $self = shift;
+ my $self = shift;
- my $ret = $self->next::method(@_);
+ my $ret = $self->next::method(@_);
- $self->storage->debugobj($pp);
+ $self->storage->debugobj($pp);
- $ret
+ $ret
}
# GLOBALS
#======================================================================
-our $VERSION = '1.67_01';
+our $VERSION = '1.67_02';
# This would confuse some packagers
$VERSION = eval $VERSION if $VERSION =~ /_/; # numify for warning-free dev releases