DBICx-TestDatabase
view release on metacpan or search on metacpan
0.05 29 July 2013
- add option to avoid automatic deployment (Phil Hallows)
0.04 14 December 2010
- support unicode (patch by diegok)
0.03 14 December 2010
- use an in-memory sqlite database by default
0.01 7 October 2007
- first version, released upon an unsuspecting world
MYMETA.yml
README
t/00-load.t
t/author/pod-coverage.t
t/author/pod.t
t/lib/MySchema.pm
t/lib/MySchema/Foo.pm
t/lib/TestDatabase.pm
t/subclass.t
t/testdatabase.t
t/unicode.t
lib/DBICx/TestDatabase.pm view on Meta::CPAN
or die "failed to require $schema_class: $@";
my $filename = ':memory:'; # use in-memory database
if($ENV{DBIC_KEEP_TEST}){
(undef, $filename) = tempfile;
push @TMPFILES, $filename;
}
my $schema = $schema_class->connect( "DBI:SQLite:$filename", '', '',
{ sqlite_unicode => 1 } )
or die "failed to connect to DBI:SQLite:$filename ($schema_class)";
$schema->deploy unless $opts->{nodeploy};
return $schema;
}
END {
if($ENV{DBIC_KEEP_TEST}){
print {*STDERR} "Keeping DBICx::TestDatabase databases: @TMPFILES\n";
}
( run in 0.440 second using v1.01-cache-2.11-cpan-88abd93f124 )