1 package DBIC::DebugObj;
8 use base qw/DBIx::Class::Storage::Statistics Exporter Class::Accessor::Fast/;
10 __PACKAGE__->mk_accessors( qw/dbictest_sql_ref dbictest_bind_ref/ );
13 =head2 new(PKG, SQL_REF, BIND_REF, ...)
15 Creates a new instance that on subsequent queries will store
16 the generated SQL to the scalar pointed to by SQL_REF and bind
17 values to the array pointed to by BIND_REF.
26 my $self = $pkg->SUPER::new(@_);
28 $self->debugfh(undef);
30 $self->dbictest_sql_ref($sql_ref);
31 $self->dbictest_bind_ref($bind_ref || []);
39 (${$self->dbictest_sql_ref}, @{$self->dbictest_bind_ref}) = @_;