DBIx-TempDB
view release on metacpan or search on metacpan
# connect to the temp database
my $db = DBI->connect($tmpdb->dsn);
# run tests...
done_testing;
# database is cleaned up when test exit
DESCRIPTION
DBIx::TempDB is a module which allows you to create a temporary
database, which only lives as long as your process is alive. This can be
very convenient when you want to run tests in parallel, without messing
up the state between tests.
This module currently support PostgreSQL, MySQL and SQLite by installing
the optional DBD::Pg, DBD::mysql and/or DBD::SQLite modules.
Please create an issue <https://github.com/jhthorsen/dbix-tempdb/issues>
or pull request for more backend support.
CAVEAT
my $db = DBI->connect($tmpdb->dsn);
# run tests...
done_testing;
# database is cleaned up when test exit
# DESCRIPTION
[DBIx::TempDB](https://metacpan.org/pod/DBIx%3A%3ATempDB) is a module which allows you to create a temporary database,
which only lives as long as your process is alive. This can be very
convenient when you want to run tests in parallel, without messing up the
state between tests.
This module currently support PostgreSQL, MySQL and SQLite by installing the optional
[DBD::Pg](https://metacpan.org/pod/DBD%3A%3APg), [DBD::mysql](https://metacpan.org/pod/DBD%3A%3Amysql) and/or [DBD::SQLite](https://metacpan.org/pod/DBD%3A%3ASQLite) modules.
Please create an [issue](https://github.com/jhthorsen/dbix-tempdb/issues)
or pull request for more backend support.
# CAVEAT
lib/DBIx/TempDB.pm view on Meta::CPAN
my $db = DBI->connect($tmpdb->dsn);
# run tests...
done_testing;
# database is cleaned up when test exit
=head1 DESCRIPTION
L<DBIx::TempDB> is a module which allows you to create a temporary database,
which only lives as long as your process is alive. This can be very
convenient when you want to run tests in parallel, without messing up the
state between tests.
This module currently support PostgreSQL, MySQL and SQLite by installing the optional
L<DBD::Pg>, L<DBD::mysql> and/or L<DBD::SQLite> modules.
Please create an L<issue|https://github.com/jhthorsen/dbix-tempdb/issues>
or pull request for more backend support.
=head1 CAVEAT
( run in 2.505 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )