1 package # hide from PAUSE
5 use base qw(DBIx::Class);
9 my @connect = ("dbi:mysql:test", "", "");
11 $dbh = DBI->connect(@connect) or die DBI->errstr;
14 END { $dbh->do("DROP TABLE $_") foreach @table }
16 __PACKAGE__->connection(@connect);
20 $class->table($class->create_test_table);
23 sub create_test_table {
25 my $table = $self->next_available_table;
26 my $create = sprintf "CREATE TABLE $table ( %s )", $self->create_sql;
32 sub next_available_table {
35 $dbh->selectcol_arrayref(
41 my $table = $tables[-1] || "aaa";