1 package # hide from PAUSE
5 use base qw(DBIx::Class::CDBICompat);
11 # temporary, might get switched to the new test framework someday
12 my @connect = ("dbi:mysql:test", "", "", { PrintError => 0});
14 $dbh = DBI->connect(@connect) or die DBI->errstr;
17 END { $dbh->do("DROP TABLE $_") foreach @table }
19 __PACKAGE__->connection(@connect);
23 $class->table($class->create_test_table);
26 sub create_test_table {
28 my $table = $self->next_available_table;
29 my $create = sprintf "CREATE TABLE $table ( %s )", $self->create_sql;
35 sub next_available_table {
38 $dbh->selectcol_arrayref(
44 my $table = $tables[-1] || "aaa";