1 package # hide from PAUSE
5 use base qw(DBIx::Class::CDBICompat);
11 my @connect = (@ENV{map { "DBICTEST_MYSQL_${_}" } qw/DSN USER PASS/}, { PrintError => 0});
12 $dbh = DBI->connect(@connect) or die DBI->errstr;
15 END { $dbh->do("DROP TABLE $_") foreach @table }
17 __PACKAGE__->connection(@connect);
21 $class->table($class->create_test_table);
24 sub create_test_table {
26 my $table = $self->next_available_table;
27 my $create = sprintf "CREATE TABLE $table ( %s )", $self->create_sql;
33 sub next_available_table {
36 $dbh->selectcol_arrayref(
42 my $table = $tables[-1] || "aaa";