line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package URI::oracle; |
2
|
2
|
|
|
2
|
|
2290
|
use base 'URI::_db'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
498
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.19'; |
4
|
|
|
|
|
|
|
|
5
|
18
|
|
|
18
|
1
|
8750
|
sub default_port { 1521 } |
6
|
2
|
|
|
2
|
0
|
11
|
sub dbi_driver { 'Oracle' } |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub _dbi_param_map { |
9
|
6
|
|
|
6
|
|
19
|
my $self = shift; |
10
|
|
|
|
|
|
|
return ( |
11
|
6
|
|
|
|
|
14
|
[ host => scalar $self->host ], |
12
|
|
|
|
|
|
|
[ port => scalar $self->_port ], |
13
|
|
|
|
|
|
|
[ sid => scalar $self->dbname ], |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub dbi_dsn { |
18
|
2
|
|
|
2
|
0
|
864
|
my $self = shift; |
19
|
2
|
|
|
|
|
6
|
my $params = $self->_dsn_params; |
20
|
2
|
100
|
66
|
|
|
6
|
$params =~ s/sid=// unless $self->host || $self->_port; |
21
|
2
|
|
|
|
|
49
|
return join ':' => 'dbi', $self->dbi_driver, $params |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |