line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package URI::oracle; |
2
|
2
|
|
|
2
|
|
2526
|
use base 'URI::_db'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
523
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.20'; |
4
|
|
|
|
|
|
|
|
5
|
18
|
|
|
18
|
1
|
7634
|
sub default_port { 1521 } |
6
|
2
|
|
|
2
|
0
|
11
|
sub dbi_driver { 'Oracle' } |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub _dbi_param_map { |
9
|
6
|
|
|
6
|
|
20
|
my $self = shift; |
10
|
|
|
|
|
|
|
return ( |
11
|
6
|
|
|
|
|
17
|
[ 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
|
976
|
my $self = shift; |
19
|
2
|
|
|
|
|
7
|
my $params = $self->_dsn_params; |
20
|
2
|
100
|
66
|
|
|
5
|
$params =~ s/sid=// unless $self->host || $self->_port; |
21
|
2
|
|
|
|
|
54
|
return join ':' => 'dbi', $self->dbi_driver, $params |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |