use Scalar::Util ();
-use DBM::Deep::Engine::DBI ();
-use DBM::Deep::Engine::File ();
-
use overload
'""' => sub { overload::StrVal( $_[0] ) },
fallback => 1;
use constant DEBUG => 0;
+use DBM::Deep::Engine;
+
sub TYPE_HASH () { DBM::Deep::Engine->SIG_HASH }
sub TYPE_ARRAY () { DBM::Deep::Engine->SIG_ARRAY }
? 'DBM::Deep::Engine::DBI'
: 'DBM::Deep::Engine::File';
+ eval "use $class"; die $@ if $@;
$args->{engine} = $class->new({
%{$args},
obj => $self,
if ( $ENV{TEST_SQLITE} ) {
(undef, my $filename) = new_fh();
# $filename = 'test.db';
-#warn "$filename\n";
push @reset_funcs, sub {
+ require 'DBI.pm';
my $dbh = DBI->connect(
"dbi:SQLite:dbname=$filename", '', '',
);