More refactoring, added ->source and ->resultset to Schema
[dbsrgits/DBIx-Class-Historic.git] / t / testlib / CDBase.pm
CommitLineData
ea2e61bf 1package CDBase;
2
3use strict;
4use base qw(DBIx::Class);
a02675cd 5__PACKAGE__->load_components(qw/CDBICompat Core DB/);
ea2e61bf 6
7use File::Temp qw/tempfile/;
8my (undef, $DB) = tempfile();
9my @DSN = ("dbi:SQLite:dbname=$DB", '', '', { AutoCommit => 1 });
10
11END { unlink $DB if -e $DB }
12
13__PACKAGE__->connection(@DSN);
14
151;