Repository navigation
Expand file tree
/
Copy pathConf.pm
More file actions
51 lines (45 loc) · 1.44 KB
/
Copy pathConf.pm
File metadata and controls
51 lines (45 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package DBI::Test::DBI::Conf;
use strict;
use warnings;
use parent qw(DBI::Test::Conf);
BEGIN
{
eval { require SQL::Statement; };
}
my %setup = (
pureperl => {
name => "DBI::PurePerl",
category => "dbi",
cat_abbrev => "z",
abbrev => "p",
init_stub => [ '$ENV{DBI_PUREPERL} = 2', ],
cleanup_stub => ['delete $ENV{DBI_PUREPERL};'],
},
gofer => {
name => "DBD::Gofer",
category => "dbi",
cat_abbrev => "z",
abbrev => "g",
init_stub => [ q{$ENV{DBI_AUTOPROXY} = 'dbi:Gofer:transport=null;policy=pedantic'}, ],
cleanup_stub => [q|delete $ENV{DBI_AUTOPROXY};|],
},
(
( defined( $INC{'SQL/Statement.pm'} ) and -f $INC{'SQL/Statement.pm'} )
? (
nano => {
name => "DBI::SQL::Nano",
category => "dbi",
cat_abbrev => "z",
abbrev => "n",
init_stub => [ q{$ENV{DBI_SQL_NANO} = 1}, ],
cleanup_stub => [q|delete $ENV{DBI_SQL_NANO};|],
},
)
: ()
),
);
sub conf
{
%setup;
}
1;