1 package # hide from PAUSE
5 use base qw(DBIx::Class::CDBICompat);
11 my @connect = ("dbi:mysql:test", "", "");
13 $dbh = DBI->connect(@connect) or die DBI->errstr;
16 END { $dbh->do("DROP TABLE $_") foreach @table }
18 __PACKAGE__->connection(@connect);
22 $class->table($class->create_test_table);
25 sub create_test_table {
27 my $table = $self->next_available_table;
28 my $create = sprintf "CREATE TABLE $table ( %s )", $self->create_sql;
34 sub next_available_table {
37 $dbh->selectcol_arrayref(
43 my $table = $tables[-1] || "aaa";