Class-Tables
view release on metacpan or search on metacpan
insert into purchases
(purchase_product,purchase_employee_id,purchase_quantity,purchases_date)
values (3,2,8,'2002-12-14')
END_OF_SQL
####################
## initialization ##
####################
my $timer = times;
use_ok('Class::Tables');
{
package MySubclass;
our @ISA = ('Class::Tables');
our $hello = 0;
sub search {
my $x = shift;
$hello++;
## subclassing revisited ##
###########################
isnt(
$MySubclass::hello,
0,
"subclass overrides methods" );
## done!
$timer = times - $timer;
diag "SUMMARY: $Class::Tables::SQL_QUERIES queries, ${timer}s (using $driver)";
#############
## cleanup ##
#############
END {
if ($dbh and $dbh->{Active}) {
$dbh->do($_) for (split /\s*;\s*/, <<' END_OF_SQL');
drop table /*! if exists */ departments;
drop table /*! if exists */ employees;
( run in 0.966 second using v1.01-cache-2.11-cpan-49f99fa48dc )